I’m toying about with writing a client in Rust.

Example code online uses the API endpoint https://lemmy.ml/api/v3/post/list, and when I go to this link in a browser, it doe indeed load data. However, when I try to load it from a program, it gives me a 403 Forbidden. Does anyone know why this could be?

(code)

  • @SubArcticTundra@lemmy.mlOP
    link
    fedilink
    English
    11 year ago

    Ah I’ll try that, thanks. This is unrelated, but is it normal for my project folder for this to have 3GB, given that these are my dependencies?:

    lemmy_api_common = "0.18.2"
    reqwest = "0.11.18"
    tokio = "1.29.1"
    

    I’m quite new to rust and I realize that some languages don;t share dependencies between projects

    • @marsara9@lemmy.world
      link
      fedilink
      English
      11 year ago

      The target folder may be quite large. You can look at the dependencies for my project but my end binary is only a few MB.