Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http POST support #499

Closed
wants to merge 647 commits into from
Closed

http POST support #499

wants to merge 647 commits into from
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Oct 10, 2022

  1. Configuration menu
    Copy the full SHA
    01f130f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac2639f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4bbdd57 View commit details
    Browse the repository at this point in the history
  4. fix(iroh-one): use default store path when no --store-path flag prese…

    …nt (n0-computer#317)
    
    use store exported path in iroh-one
    
    closes #255, closes #309
    b5 committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    643fd43 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ee43bd7 View commit details
    Browse the repository at this point in the history
  6. gateway: Fetch recursive DAG as CAR (n0-computer#304)

    * feat(gateway): fetch a DAG recursively as CAR.
    
    * test(gateway): add test for recursive car fetch
    
    also fixes clippy and code style issues
    
    * refactor(resolver): use mapper in recursive resolve
    
    * style(resolver): fix comment
    
    * style(resolver): clippy fix
    
    * style(gateway): clippy fix and test fix
    Frando committed Oct 10, 2022
    Configuration menu
    Copy the full SHA
    0dc698e View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2022

  1. fix: pass links to store when adding data (n0-computer#299)

    * fix(unixfs): ensure links get persisted in store
    
    This had to be merged with some other changes related to the size info.
    Introduce a Block struct that has data, hash and links for DRY.
    
    * test(unixfs): validate blocks in all roundtrip tests
    
    Validate blocks in all roundtrip tests to make sure that the blocks that
    are returned from file.encode or dir.encode are internally consistent.
    
    * fix(store): only create new id when needed
    
    The old code was creating new ids even if we already knew the cid, which
    caused some havoc.
    rklaehn committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    9476d9c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fe0b3ba View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c3def87 View commit details
    Browse the repository at this point in the history
  4. fix(p2p): Increase the size of the kad mem store (n0-computer#320)

    This allows adding large files without getting an error. It is a stopgap until
    we have a persistent kad store.
    rklaehn committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    00f5660 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9c46cb0 View commit details
    Browse the repository at this point in the history
  6. feat: iroh-api rename, iroh get basics, rpc client construction

    ## move RPC client construction into `iroh` (read: `iroh-api`)
    
    I've moved creation of the RpcClient away from the CLI into `iroh` (to be `iroh-api`). This means that the API gains a bunch of dependencies and the CLI loses them.
    
    Doing this made me realize that the api should own the rpc client, so changed from a reference (with a lifetime) to ownership.
    
    ## `iroh get` start of implementation
    
    Start of implementation of `iroh get` with a few mocked CLI tests
    
    ## `iroh` -> `iroh-api` crate
    
    The plan is to have an `iroh` crate that contains the CLI and an `iroh-api` crate that contains the Rust API. Here we've done half of that renaming: `iroh` is renamed to `iroh-api`. I haven't done the second half, renaming `iroh-ctl` to `iroh`, as that would make this commit too different to read.
    faassen committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    d24edc1 View commit details
    Browse the repository at this point in the history
  7. feat: rename the iroh-ctl crate to the iroh crate (n0-computer#321)

    * Rename the iroh-ctl crate to the iroh crate
    
    * test: test --version flag does what it should now
    faassen committed Oct 11, 2022
    Configuration menu
    Copy the full SHA
    8b02977 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2022

  1. hash received blocks

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    72c0c09 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b256608 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6c3700b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    20125a6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4d837a9 View commit details
    Browse the repository at this point in the history
  6. fix: allow Raw as UnixfsType (n0-computer#327)

    Acknowledges that a `raw` node is a valid `UnixfsNode` and therefore can be resolved as a file in the gateway
    ramfox committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    275d88b View commit details
    Browse the repository at this point in the history
  7. optimize wantlist

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    c6cf412 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bf3c869 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    785284f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7fa6a8d View commit details
    Browse the repository at this point in the history
  11. add missing await

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    a7ce238 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    d9b836f View commit details
    Browse the repository at this point in the history
  13. record outgoing blocks

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    8ccc9f7 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9250f66 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8b8d8cd View commit details
    Browse the repository at this point in the history
  16. record found providers

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    10915c8 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5449b86 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    465792a View commit details
    Browse the repository at this point in the history
  19. more logging

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    a811fb8 View commit details
    Browse the repository at this point in the history
  20. more logging for dials

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    5c9b1e4 View commit details
    Browse the repository at this point in the history
  21. fix dial metrics

    Arqu committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    6b34a80 View commit details
    Browse the repository at this point in the history
  22. enable identify cache

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    2004fdf View commit details
    Browse the repository at this point in the history
  23. Revert "fix dial metrics"

    This reverts commit 6b34a80.
    Arqu committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    5f4c063 View commit details
    Browse the repository at this point in the history
  24. fix dial metrics

    Arqu committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    80c6214 View commit details
    Browse the repository at this point in the history
  25. shutdown on dial error

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    d9faf43 View commit details
    Browse the repository at this point in the history
  26. increase timeout

    Arqu committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    49a0568 View commit details
    Browse the repository at this point in the history
  27. dial debug

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    45a13fc View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    94ca7c2 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    b9442dc View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    d28a77c View commit details
    Browse the repository at this point in the history
  31. more metrics

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    7784bbb View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    94aa068 View commit details
    Browse the repository at this point in the history
  33. more metrics

    dignifiedquire committed Oct 12, 2022
    Configuration menu
    Copy the full SHA
    afa7899 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2022

  1. fix: stop preventing any directory or file foo from existing in the…

    … project (n0-computer#334)
    
    This tripped up some test fixtures I wrote where I had inadvertently created
    a directory `foo` and hadn't realized they were never actually checked in. Was a bit
    of a headscratcher we want to prevent in the future.
    faassen committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    3ef7ccc View commit details
    Browse the repository at this point in the history
  2. fix(iroh-gateway): add FileType::Raw option (n0-computer#332)

    also reverts previous commit that made a bad assumption about allowing `Raw` as a `UnixfsType` in the resolver
    ramfox committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    ff4ef02 View commit details
    Browse the repository at this point in the history
  3. debugging

    dignifiedquire committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    f1b31aa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3943cb0 View commit details
    Browse the repository at this point in the history
  5. chore: use xtasks for release builds and man page generation (n0-comp…

    …uter#333)
    
    add support for manual pages generated from clap documentation, use the xtasks pattern to get "npm run" or "make"-like functionality
    b5 committed Oct 13, 2022
    Configuration menu
    Copy the full SHA
    2db7bf0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3316a53 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2022

  1. refactor: DRY store code (n0-computer#341)

    This makes the code less verbose, and also will be helpful if we can figure
    out how to permanently store the cf handles.
    rklaehn committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    c866eaf View commit details
    Browse the repository at this point in the history
  2. gateway: spec parity part 1(n0-computer#319)

    * fix: increase concurrency limit
    
    * feat: handle only if cached calls
    
    * fix: handle head requests
    
    * align accept headers with spec
    
    * use resolver::Path instead of string paths
    
    * clean up response format parsing
    
    * cleanup etag check
    
    * remove unused flags & config options
    
    * better content type detection - part 1
    
    * feat: better content type detection
    
    * make clippy happy
    
    * per spec content disposition & cache-control
    
    * cleanup
    
    * rebase cleanup
    
    * cr
    
    * cr
    
    * rebase cleanup
    Arqu committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    7b1d32a View commit details
    Browse the repository at this point in the history
  3. remove unused code

    dignifiedquire committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    db251f0 View commit details
    Browse the repository at this point in the history
  4. cleanup

    dignifiedquire committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    501b121 View commit details
    Browse the repository at this point in the history
  5. one little bool....

    dignifiedquire committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    cdd6bbf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2fa0fa1 View commit details
    Browse the repository at this point in the history
  7. feat: CLI get command improvements (n0-computer#331)

    This focuses on creating tests for the `iroh get` CLI command. The Iroh API is also improved along the way.
    
    This required more work in the underlying API to make it more testable. What's tested here is everything *except* the actual IPFS behavior -- the focus is on the behavior of the CLI and API and its interactions with the filesystem.
    
     ## trycmd tests
    
    In `iroh/tests/cmd` you can see quite a few `.trycmd` files. These describes the command-line interaction. Stuff behind `$ is a command, there's a special `? failed` indicator if the command is considered to have failed, and the output of the command is shown.
    
    New are the `.out` and `.in` directories with the same names as the `.trycmd` files. These describe the filesystem before the command runs (may be missing), and the filesystem after the command has run. This way we can describe the effects of the `iroh get` command - directories and files are supposed to be created. We can also test failure scenarios where we refuse to overwrite a directory that already exists. #269 tracks various test cases.
    
    ## `get_stream`
    
    The `get` high level CLI method has been removed from the mockable `Api` trait (read on to see where it went). Instead, a more low level but still useful API method `get_stream` has been added to the `Api` trait. This gets a stream of relative paths and `OutType`, describing the directories and files you can create. 
    
    The big difference with what was there before is that it returns relative paths and doesn't calculate final destination paths -- that's up to the user of the API.
    
    ## No `async_trait` macro for `Api` trait
    
    The interactions between the `Api` trait, `mockall` macro and `async_trait` were getting so hairy I couldn't figure out how to express things anymore once I wanted to add `get_stream`. For my sanity and also to learn better how this really works underneath, I've rewritten the `Api` trait to describe itself explicitly in terms of `(Local)BoxFuture` and `(Local)_BoxStream`. It's more verbose but functionally equivalent and I could express what I wanted. 
    
    ## `ApiExt` trait
    
    The `ApiExt` trait is a trait that implements the high level `get` command. It puts everything together: it handles various error conditions, accesses the stream and then writes the stream to the filesystem. It's basically `iroh get`.
    
    The `ApiExt` trait is solely intended to contain default trait methods, and is automatically available when the `Api` contract is fulfilled (if you `use` it).
    
    Factored out `save_get_stream` from `getadd.rs` to be solely concerned with turning a stream into files and directories on the files system. That makes it possible to test its behavior in isolation.
    
    ## test fixture
    
    The `get` test fixture now mocks `get_stream` and returns a fake stream made from a `Vec`. This defines the actual stuff that the CLI writes to disk.
    
    ## relative_path
    
    Now depend on the [`relative-path` crate](https://crates.io/crates/relative-path) because what the stream returns are clearly relative paths, and we want to force the user to do something with them before being able to actually write stuff.
    faassen committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    b18b6c8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9e0a03e View commit details
    Browse the repository at this point in the history
  9. feat: range request support (n0-computer#330)

    * feat: range request support
    
    * cr
    
    * tests & fixes
    
    * fix etag range headers
    
    * rebase cleanup
    Arqu committed Oct 14, 2022
    Configuration menu
    Copy the full SHA
    074f0c6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5937924 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    31cb29c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a160805 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2022

  1. Configuration menu
    Copy the full SHA
    40cb232 View commit details
    Browse the repository at this point in the history
  2. docs: add full help text for lookup, connect, get, p2p, and `…

    …iroh` commands (n0-computer#348)
    
    * docs: add full help text for `lookup`, `connect`, `get`, `p2p`, and
    `iroh` commands
    
    * move long descriptions into constants
    
    Co-authored-by: b5 <sparkle_pony_2000@qri.io>
    ramfox and b5 committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    b14a7a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4570621 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0904280 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a95d0f5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    56f1df9 View commit details
    Browse the repository at this point in the history
  7. fix client loop metric

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    381f934 View commit details
    Browse the repository at this point in the history
  8. track peers

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    09a5155 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    71eaab3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    671d178 View commit details
    Browse the repository at this point in the history
  11. fixup triggers

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    a82ade2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8191cb7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0afefe5 View commit details
    Browse the repository at this point in the history
  14. connect with identify

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    16c40c9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8e3f831 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    733601d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    cd78bd3 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    ced8e05 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    00a55c6 View commit details
    Browse the repository at this point in the history
  20. more evil

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    4bdec19 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    a8303df View commit details
    Browse the repository at this point in the history
  22. more debugging

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    6841992 View commit details
    Browse the repository at this point in the history
  23. getting closer

    dignifiedquire committed Oct 15, 2022
    Configuration menu
    Copy the full SHA
    6046da1 View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2022

  1. bigger buffers

    dignifiedquire committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    e4b6beb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    85435a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e4de89 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f51330 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ebf39d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2022

  1. avoid network timeout on bitswap

    Arqu committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    9b0ddfc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3ccdb6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    03a65b1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3e2bdd7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    040933a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4394c88 View commit details
    Browse the repository at this point in the history
  7. update logging

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    8e56fb1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cae377c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    210ed12 View commit details
    Browse the repository at this point in the history
  10. fix iroh-share

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    fdf1f4f View commit details
    Browse the repository at this point in the history
  11. feat: CLI tests for iroh add, and API changes (n0-computer#343)

    This contains work on the add command, with a few CLI tests and some API tweaks.
    
    ## add layering
    
    `add_file` and `add_dir` in the core `Api` that's mockable, and the slightly higher level `add` is above it in `ApiExt`.
    
    ## recursive simplication
    
    Test for the `-r` flag in the CLI and just let `add_dir` in the resolver add a directory without worrying. This is tested.
    
    ## a few add CLI tests
    
    A few basic add CLI tests.
    
    ## CLI test cleanup
    
    I've went through the `cli_tests.rs` module step by step cleaning and reorganizing the tests so it's more easy to maintain them. Unfortunately `trycmd` gets too finicky if I try to use its globbing feature (as input and output directories seem shared sometimes). So now I maintain an explicit list in the same order as they show up alphabetically. It's too verbose but it's the best we can do for now.
    faassen committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    fdf2170 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b62d981 View commit details
    Browse the repository at this point in the history
  13. record cancellations

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    b0f2220 View commit details
    Browse the repository at this point in the history
  14. dont kill the worker

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    162b8a1 View commit details
    Browse the repository at this point in the history
  15. feat: Map id to cid instead of multihash (n0-computer#336)

    * test: ensure that different cids with the same hash work
    
    Currently failing because of #335
    
    * fix: use code and hash (so basically cid) as id key
    
    That way you can have 2 cids with the same hash but different links.
    Downside is that you might store the same data twice in the very unlikely
    case where you have the same data as both raw and dag-cb. ¯\_(ツ)_/¯
    
    * perf: avoid allocation when creating an id key
    
    * feat: Add way to get data by hash
    
    This is one of the two ways of doing this:
    
    - downside: in the rare case where there are 2 cids with the same hash, the data gets stored twice
    - upside: storing the graph can be done using just u64 ids instead of (code, id) tuples
    
    * docs: update comment to match new db layout
    
    * refactor: address PR review comments
    rklaehn committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    092bdf7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7a7a77c View commit details
    Browse the repository at this point in the history
  17. drop handler guards

    Arqu committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    c373d30 View commit details
    Browse the repository at this point in the history
  18. feat(unixfs): add symlink support (n0-computer#337)

    1) hard links are treated like files
    2) symlinks are taken from the original filesystem "as is", so they may be broken if the link refers to a file or directory outside of the scope of what has been "added" to ipfs
    ramfox committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    3157c15 View commit details
    Browse the repository at this point in the history
  19. gateway: spec compliance part 2 (n0-computer#350)

    * head request support
    
    * align with spec & dir etags
    
    * CR
    Arqu committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    5ed12ca View commit details
    Browse the repository at this point in the history
  20. more clippy

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    5f9d7fa View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    13a3ded View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    233a235 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    f179a67 View commit details
    Browse the repository at this point in the history
  24. cleanup dht finding

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    ef95ffb View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    313c875 View commit details
    Browse the repository at this point in the history
  26. revert handler changes

    dignifiedquire committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    6b971fb View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ca754a2 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    c2305fb View commit details
    Browse the repository at this point in the history
  29. Merge branch 'main' into bitswap2

    b5 committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    c2460b1 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2022

  1. fix: make trace_id visible only if in use (n0-computer#359)

    * fix: make trace_id visible only if in use
    
    * cr
    Arqu committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    c29bf85 View commit details
    Browse the repository at this point in the history
  2. clean up

    dignifiedquire committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    316dde5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0b169f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a663fa7 View commit details
    Browse the repository at this point in the history
  5. fixup

    dignifiedquire committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    24d2023 View commit details
    Browse the repository at this point in the history
  6. Merge pull request n0-computer#357 from n0-computer/bitswap2

    New Bitwap Implementation
    dignifiedquire committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    3cafdde View commit details
    Browse the repository at this point in the history
  7. ci: fix builds & add platforms (n0-computer#363)

    * fix: CI iroh-ctl renamed to iroh
    
    * fix: return of GHA
    Arqu committed Oct 18, 2022
    Configuration menu
    Copy the full SHA
    5114380 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2022

  1. fix: CI, add macOS & windows builds, cargo audit

    * fix ci
    
    * fix fmt & clippy
    
    * cargo audit
    Arqu committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    5dbd907 View commit details
    Browse the repository at this point in the history
  2. feat: progress bar for iroh add command (n0-computer#368)

    This introduces a progress bar for the `iroh add` command. It touches the following layers:
    
    * the various `add_dir`, `add_file` functions in `iroh::resolver::unixfs_builder` now return a stream of `AddEvents`
    
    * these are exposed in the `iroh-api` where they are mockable. The `iroh-api` also provides a higher level method to resolve a `AddEvent` stream to a CID
    
    * `iroh::size` introduces a way to calculate total size of each file on the filesystem
    
    * The `iroh add` command in the `iroh` crate then calculates the total size with a spinner, and then uses this to show a progress bar.
    
    Note that `indicatif`, the progress bar library, allows a lot of tweaking of what we see, both color, characters and text. I made a selection to get started. Suggestions for tweaks of what the bar looks like are welcome.
    
    I want to also include current file information in the message part of the progress bar, but getting that information requires more rework of the `unixfs_builder` and I think we should punt on that for the time being.
    faassen committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    bff3560 View commit details
    Browse the repository at this point in the history
  3. fix: move bitswap msg counters out of encode/decode (n0-computer#374)

    * fix: move bitswap msg counters out of encode/decode
    
    * fix
    
    * fix
    
    * fix
    Arqu committed Oct 20, 2022
    Configuration menu
    Copy the full SHA
    85d80b9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6de85c9 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2022

  1. Configuration menu
    Copy the full SHA
    7a945ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9d9c25 View commit details
    Browse the repository at this point in the history
  3. perf: Use the libipld built in way to scrape references

    ...without having to create an AST. Should be much faster.
    rklaehn committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    93546b1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d57b12a View commit details
    Browse the repository at this point in the history
  5. Merge pull request n0-computer#388 from rklaehn/rklaehn/faster-link-s…

    …craping
    
    perf: Use the libipld built in way to scrape references
    dignifiedquire committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    121b968 View commit details
    Browse the repository at this point in the history
  6. fix(bitswap): fetch provider loop

    a) no double looping
    b) no double spawning
    
    - simplified fetching
    - limit provider queries inflight
    dignifiedquire committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    93517a3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    8a906ee View commit details
    Browse the repository at this point in the history
  8. iroh start & stop commands (n0-computer#360)

    re-re-re worked start & stop commands that effectively do this on start:
    
        #/bin/bash
        nohup iroh-store > /dev/null &
        nohup iroh-p2p > /dev/null &
        nohup iroh-gateway > /dev/null &
    
    all daemons now use lockfiles, and all lockfiles contain the PID of the owning process. `iroh stop` uses this PID to send `SIGINT` to each process. `iroh stop` also makes a best effort to remove stray lockfiles. Lockfiles are not locked by the OS, but rather honoured by iroh programs.
    b5 committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    10378af View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b05b94a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a93dfb4 View commit details
    Browse the repository at this point in the history
  11. Merge pull request n0-computer#392 from n0-computer/fix-panic-rpc

    fix(p2p): do not panic on shutdown of bs req
    dignifiedquire committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    1f1c47a View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2022

  1. fix broken macos github action (n0-computer#394)

    The source is a security feature around process forking on macOS after High Sierra. While the fix isn't ideal, our use of fork is only in tests
    b5 committed Oct 22, 2022
    Configuration menu
    Copy the full SHA
    898340c View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2022

  1. start/stop accept arguments, start defaults to {store,gateway} (n0-co…

    …mputer#398)
    
    * start/stop accept arguments, start defaults to [store,gateway]
    * change 'Down' color from red -> grey
    b5 committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    aba1b17 View commit details
    Browse the repository at this point in the history
  2. feat: p2p api service calls with a p2p-specific error, better feedback (

    n0-computer#402)
    
    Co-authored-by: Kasey <kasey@n0.computer>
    b5 and ramfox committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    b565231 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6f3d487 View commit details
    Browse the repository at this point in the history
  4. fix: windows symlink support (n0-computer#386)

    Co-authored-by: Ruediger Klaehn <rklaehn@protonmail.com>
    ramfox and rklaehn committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    563aac0 View commit details
    Browse the repository at this point in the history
  5. feat: improve add experience (n0-computer#401)

    * feat: improve add experience
    
    - parallelize stream processing for raw add
    - improve displayed content when using iroh add
    
    * Fix try_cmd tests
    
    * refactor: a few fixes to make clippy happy
    
    Co-authored-by: Ruediger Klaehn <rklaehn@protonmail.com>
    dignifiedquire and rklaehn committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    4f86388 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b499751 View commit details
    Browse the repository at this point in the history
  7. race on gateway (n0-computer#403)

    moves the racing gateway functionality into the "main" gateway, and changes the configuration location to be gateway.http_resolvers, a vec of strings.
    b5 committed Oct 24, 2022
    Configuration menu
    Copy the full SHA
    7b0a631 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2022

  1. feat: provide only root, and only at the end of add (n0-computer#406)

    * wip feat: provide only root, and only at the end of add
    
    We are still waiting for the add to complete
    
    * Fix fixure based tests
    
    * feat: add progress for DHT update
    
    * require p2p service for add
    
    * fix tests
    
    * add all flag to iroh start
    
    Co-authored-by: b5 <sparkle_pony_2000@qri.io>
    rklaehn and b5 committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    96c6148 View commit details
    Browse the repository at this point in the history
  2. fix(resolver): ipld, double-fetching, and trailing slash fixes (n0-co…

    …mputer#408)
    
    * fix(resolver): fix indexing into ipld data
    
    * fix(resolver): no more double fetch for unixfs files with links
    
    * fix(resolver): empty part in path error
    ramfox committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    f861102 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ef95e8 View commit details
    Browse the repository at this point in the history
  4. perf: add parallelism to hashing (n0-computer#411)

    Co-authored-by: Brendan O'Brien <sparkle_pony_2000@qri.io>
    rklaehn and b5 committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    12db7ed View commit details
    Browse the repository at this point in the history
  5. fix(p2p): cleanup sessions when they are canceled (n0-computer#419)

    * fix(p2p): cleanup sessions when they are canceled
    
    * comments
    
    Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>
    dignifiedquire and Arqu committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    efa9e82 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    23e1b3a View commit details
    Browse the repository at this point in the history
  7. feat: offline adding (n0-computer#415)

    allow offline adding, better error messages on add/p2p/offline flag combinations
    b5 committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    7725508 View commit details
    Browse the repository at this point in the history
  8. fix: properly saves filenames for hamt dirs (n0-computer#422)

    Co-authored-by: Brendan O'Brien <sparkle_pony_2000@qri.io>
    ramfox and b5 committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    1fe8e69 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4cab5c7 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    86b80a3 View commit details
    Browse the repository at this point in the history
  11. refactor: store code & add localstore (n0-computer#421)

    * fix: actually store the data
    
    * fix: store chunk in any case
    
    * refactor: add localstore
    
    LocalStore is completely synchronous and and not Send.
    In it we can store column family handles etc. It is the most convenient
    place to actually do stuff.
    
    * refactor: Remove most awaits
    
    Basically we only have await on create, and where we need it for impl RpcStore.
    rklaehn committed Oct 25, 2022
    Configuration menu
    Copy the full SHA
    c588e77 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2022

  1. fix: p2p subcommand output cleanup (n0-computer#427)

    add /p2p/ in peers multiaddrs, rework p2p lookup output
    b5 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    0ca029c View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2022

  1. Configuration menu
    Copy the full SHA
    9a57fb7 View commit details
    Browse the repository at this point in the history
  2. default start all services, but accept config (n0-computer#433)

    * support cli configuration at cli.config.toml
    * basic tests for iroh cli config
    b5 committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    227ea0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4a0c05b View commit details
    Browse the repository at this point in the history
  4. chore: release v0.1.0 (n0-computer#435)

    * chore: release v0.1.0
    
    * fixup changelog
    b5 committed Oct 27, 2022
    Configuration menu
    Copy the full SHA
    031da96 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2022

  1. Configuration menu
    Copy the full SHA
    6324d83 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2022

  1. docs: fix typo

    andreivolt committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    200c2b5 View commit details
    Browse the repository at this point in the history
  2. fix : binary name iroh-ctl (n0-computer#445)

    * fix : binary name iroh-ctl
    
    rename iroh-ctl to iroh in quickstarter.md
    
    * fix : documentation DEVELOPERS,md
    
    change binary name iroh-ctl to iroh in DEVELOPERS.md documentation
    
    Co-authored-by: albert VALENTIN <avalentin@scaleway.com>
    Co-authored-by: Kasey <kasey@n0.computer>
    3 people committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    8a876fe View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2022

  1. docs: update docs

    - link to our website
    - link to our install guide
    - remove out-of-date quickstart
    - instructions for devs on how to put the binaries in the correct place
    ramfox committed Nov 1, 2022
    1 Configuration menu
    Copy the full SHA
    bd68e48 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. chore(deps): update ssh-key requirement from 0.4.2 to 0.5.1 (n0-compu…

    …ter#450)
    
    Updates the requirements on [ssh-key](https://github.com/RustCrypto/SSH) to permit the latest version.
    - [Release notes](https://github.com/RustCrypto/SSH/releases)
    - [Commits](RustCrypto/SSH@ssh-key/v0.4.3...ssh-key/v0.5.1)
    
    ---
    updated-dependencies:
    - dependency-name: ssh-key
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    2fee036 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update trycmd requirement from 0.13.7 to 0.14.1 (n0-comp…

    …uter#449)
    
    Updates the requirements on [trycmd](https://github.com/assert-rs/trycmd) to permit the latest version.
    - [Release notes](https://github.com/assert-rs/trycmd/releases)
    - [Changelog](https://github.com/assert-rs/trycmd/blob/main/CHANGELOG.md)
    - [Commits](assert-rs/snapbox@v0.13.7...v0.14.1)
    
    ---
    updated-dependencies:
    - dependency-name: trycmd
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    01aef6b View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. docs(developers): Minor typo fix (n0-computer#467)

    Improve working for a minor typo.
    flub committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    c348b44 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2022

  1. refactor: simplify mocking in iroh-api & iroh

    - Avoid using a trait to mock the `Api` struct
    - Split `fs` operations from fetching
    - General cleanup
    dignifiedquire committed Nov 4, 2022
    Configuration menu
    Copy the full SHA
    abbae1c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. fix Iroh -> API, iroh-util crate tests pass on windows (n0-computer…

    …#472)
    
    * fix windows tests on `iroh-util` crate
    b5 committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    e9c8723 View commit details
    Browse the repository at this point in the history
  2. chore(clippy): Update for rust 1.65 (n0-computer#475)

    This fixes clippy warnings for Rust 1.65.
    flub committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    e6fdb2b View commit details
    Browse the repository at this point in the history
  3. chore(deps): Remove unused dependencies

    These have been found by `cargo +nightly udeps --all-targets`.
    Leaving them in does not affect final binaries but does increase
    compilation time.
    flub committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    92dc3a6 View commit details
    Browse the repository at this point in the history
  4. ref(style): Sort dependencies in Cargo.toml files

    Makes it easier to find items and keeps things consistent,
    e.g. cargo-add will keep lines sorted if they already are sorted.
    flub committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    286f0bf View commit details
    Browse the repository at this point in the history
  5. Merge pull request n0-computer#474 from n0-computer/flub/unused-deps

    Clean up dependencies
    flub committed Nov 7, 2022
    Configuration menu
    Copy the full SHA
    54b0830 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2022

  1. ref(lru-cache): Change lru cache crate to avoid vulnerable dependency (

    …n0-computer#478)
    
    * perf(lru cache): Benchmarks for LRU caches
    
    Some quick and dirty benchmarks for the caches and lru crates for the
    LRU cache.
    
    * Improve benchmarks: measure just the operation
    
    This makes use the the facilities to compare two functions and also
    uses iter_batches to handle setup and dropping correctly.  The results
    are widely different!  The differences between both implementations
    are much muchness really, not much to go either way.
    
    * feat(lru): Switch implementation to lru crate
    
    The performance is pretty similar and we don't use any features of the
    bigger crate.
    
    * Use current version of criterion
    
    * Remove caches crate entirely
    
    This makes sure it no longer shows up in cargo-audit.
    
    * remove old crate entirely
    flub committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    fb53f8f View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2022

  1. ref(benches): Describe more ways of running benchmarks (n0-computer#483)

    You don't need to install cargo-criterion, it only gives you a nicer
    experience.
    
    Also fix up a comment.
    flub committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    029c79a View commit details
    Browse the repository at this point in the history
  2. fix(store): Make store operations atomic (n0-computer#480)

    * test(store): add test that shows that the store can get inconsistent
    
    Add test that shows that the store can get internally inconsistent when
    hammering it with concurrent put calls involving the same child cids.
    
    * fix(store): Make writing to the store fully sequential
    
    * refactor(store): split into write and read part
    
    * refactor(store): use spawn_blocking to isolate blocking io from tokio taskpool
    
    * refactor(store): switch to parking lot mutexes
    
    * refactor(store): review comments
    
    * doc(store) update comments
    
    * fix(store): Rip out parking lot
    
    Maybe that will fix the mysterious linker error. Shame, since it is much
    faster than std::sync locks.
    rklaehn committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    ac8ec35 View commit details
    Browse the repository at this point in the history
  3. feat: indexer resolution (n0-computer#476)

    * unify content loaders and integrate indexers
    * propagate providers to bitswap
    * filter by transport
    * don't double clone resolver
    * remove bitswap/src/docs.md
    * remove racing gateway, behaviour is now merged into the FullResolver
    
    Co-authored-by: dignifiedquire <me@dignifiedquire.com>
    b5 and dignifiedquire committed Nov 10, 2022
    Configuration menu
    Copy the full SHA
    f744949 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2022

  1. chore(xtask): Make dev-install a little friendlier (n0-computer#486)

    Add a warning in case there's no release build to install.
    flub committed Nov 11, 2022
    Configuration menu
    Copy the full SHA
    2ba3c6a View commit details
    Browse the repository at this point in the history
  2. ref(api): Switch argument from PathBuf to &Path (n0-computer#488)

    Changes the file_paths argument of make_config to take &Path
    references.  It is not using this allocation and instead only using it
    a &Path.  Many callers also had to explicitly allocate this.
    flub committed Nov 11, 2022
    Configuration menu
    Copy the full SHA
    dc6f859 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. fix: Correct dependencies and build checks (n0-computer#484)

    Fixes some CI commands to check all code by enabling all features and
    checking more parts of the code.
    
    As a result fixes the dependencies of the uds-gateway feature and
    switches it from the deprecated tempdir to tempfile.
    
    Makes the version spec of tempfile consistent between all the
    workspace crates.
    
    Fixes a clippy warning about cloning a bool, which is Copy.
    
    Finally a few extra changes in ci.yml which the linter was complaining
    about.
    flub committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7e9cdc3 View commit details
    Browse the repository at this point in the history
  2. fix: Process -> Service in status command, add after help text (n0-co…

    …mputer#493)
    
    add help text was missing from `iroh add --help` cli output, now fixed.
    `iroh status` column header is renamed from `Process` to `Service`, matching documentation.
    
    Co-authored-by: Kasey <kasey@n0.computer>
    b5 and ramfox committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    804255c View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Configuration menu
    Copy the full SHA
    f8af48a View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. chore(deps): Unify the anyhow version dependency (n0-computer#498)

    Since iroh is a library, or will be, we should not have too strict a
    version requirement, so simply requiring version 1.
    flub committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    cade4e5 View commit details
    Browse the repository at this point in the history
  2. feat: support lookup names in RPC addrs (n0-computer#500)

    support addrs like grpc://example:4444, which is required for DevOps infrastructure that provides hostname resolution as part of service discovery.
    
    This patch uses the heuristic of being able to resolve the name to disambiguate between `grpc://foo` the lookup address and `grpc://foo`, a path to a unix domain socket file location. In practice this shouldn't be too big a deal, but might get tricky if folks start naming UDS paths after domains 😵 .
    b5 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    144eef7 View commit details
    Browse the repository at this point in the history
  3. chore: Disable uds-gateway feature on windows (n0-computer#502)

    Perhaps it is even desirable to trigger a compilation failure when
    trying to enable the feature on windows.  The downside is that the
    `--all-features` argument to cargo would no longer work on windows and
    this makes the development experience a lot more painful.  For now
    this seems a reasonable compromise.
    flub committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    3645a2d View commit details
    Browse the repository at this point in the history
  4. docs: add docker compose example (n0-computer#501)

    * docs: add docker compose example
    * add docker push xtask
    * fix: use '__' as env var field separator
    
    pathing into Config.field.sub_field now works via CONFIG__FIELD__SUB_FIELD
    using double underbar de-conflicts with space representation. It's not pretty,
    but it's the least terrible thing I've seen.
    
    Shoutout @Frando for the fix
    b5 committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    579c8ed View commit details
    Browse the repository at this point in the history
  5. test(iroh-p2p): test interactions between multiple nodes (n0-computer…

    …#489)
    
    Adds testing around the p2p rpc and p2p node interactions.
    
    Adds a `TestRunner` that sets up test p2p nodes. You can use random ports to assign addresses. The `TestRunner` stores the `peer_id`, `addr`, and `dial_addr` (a convenience field: it's the combo `peer_id` and `addr` into a `Multiaddr` that another peer can use to directly dial this peer).
    
    The `TestRunner` can be configured to *not* bootstrap to any outside peers, to try and isolate the tests from the outside network.
    ramfox committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    7b13174 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Configuration menu
    Copy the full SHA
    d463a3e View commit details
    Browse the repository at this point in the history
  2. fix(cli): Respect the --cfg flag (n0-computer#506)

    Use the --cfg flag to load the configuration file for `iroh`.
    
    This does not affect the config files for any of the managed
    processes like iroh-p2p etc.
    
    * Make argument a slice rather than a vec, the vec was not really used.
    * Test the priority order and document it.
    flub committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    e7bcac6 View commit details
    Browse the repository at this point in the history
  3. fix: Switch to tempfile for temporary test directories (n0-computer#509)

    This removes the testdir crate for a temprorary testing directory and
    uses the tempfile crate instead.  It seems a transitive dependency for
    testdir does not work on mac, which is kind of required for us.
    flub committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    89959cb View commit details
    Browse the repository at this point in the history
  4. fix(iroh-store): put_many bug (n0-computer#507)

    - `continue` instead of `return`, when we find that a CID already exists
      in the store
    - ensure we aren't double-adding CIDs from the same batch, by tracking
      the batched CIDs in a `AHashSet`
    ramfox committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    88f1a49 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2022

  1. Configuration menu
    Copy the full SHA
    aff773f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cd9fa23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f429baa View commit details
    Browse the repository at this point in the history
  4. refactor(ops): CI rework (n0-computer#497)

    * ops(ci): github actions rework
    
    * optimize build profiles
    
    * add windows builds
    
    * refactor & clean up
    
    * remove circle ci
    
    * build binaries only from main
    
    * test
    
    * fix protoc
    
    * cr
    
    * more runners
    
    * adaptations
    
    * fix
    
    * remove cacheing
    
    * move away from actions-rs
    
    * bump
    
    * fix protoc
    
    * adjust runner config
    
    * adjust runner config
    
    * cleanup
    
    * cleanup
    
    * fix mac release
    
    * fix clippy windows
    
    * build release only on main
    Arqu committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    57addda View commit details
    Browse the repository at this point in the history
  5. ops(ci): utilize self hosted windows runner (n0-computer#521)

    * ops(ci): utilize self hosted windows runner
    
    * fix toolchain
    
    * test
    
    * empty
    
    * debug
    
    * reorder
    
    * cleanup
    
    * cleanup
    Arqu committed Nov 18, 2022
    Configuration menu
    Copy the full SHA
    22a1426 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    2f0f4f4 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2022

  1. Configuration menu
    Copy the full SHA
    e281a4a View commit details
    Browse the repository at this point in the history
  2. fix: docker-compose RPC ports should only listen on loopback (n0-comp…

    …uter#524)
    
    * fix: docker-compose RPC ports should only listen on loopback
    
    closes #520
    b5 committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    8471e49 View commit details
    Browse the repository at this point in the history
  3. fix: iroh start service set construction (n0-computer#522)

    also, use a BTreeSet for services, makes output deterministic
    b5 committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    070be80 View commit details
    Browse the repository at this point in the history
  4. fix: convert v0 -> v1 before base32 conversion (n0-computer#527)

    GatewayUrl::as_url can error now
    b5 committed Nov 19, 2022
    Configuration menu
    Copy the full SHA
    ab3969c View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. chore(docs): Recommend --all-targets (n0-computer#531)

    Document using --all-targets instead of the --tests --bins etc.  This
    is more comprehensive and shorter than trying to list all the targets
    by hand.
    flub committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    22e3a42 View commit details
    Browse the repository at this point in the history
  2. feat(p2p): dial MDNS peers

    * feat: upgrade to latest rust-libp2p
    * feat(p2p): dial discovered mdns peers
    dignifiedquire committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    5bee5b7 View commit details
    Browse the repository at this point in the history
  3. feat: bitswap client mode

    Co-authored-by: b5 <sparkle_pony_2000@qri.io>
    dignifiedquire and b5 committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    2a8a515 View commit details
    Browse the repository at this point in the history
  4. feat(cli): Environment variables to override directories

    Adding the IROH_CONFIG_DIR, IROH_DATA_DIR and IROH_CACHE_DIR
    environment variables to override the OS-dependent locations.
    flub committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    9a2220b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    78777c3 View commit details
    Browse the repository at this point in the history
  6. refactor: HEAD for CIDs + refactoring of handlers (n0-computer#530)

    * [feat] HEAD for CIDs + refactoring of handlers
    
    * [pr] Added tests
    
    * [fix] Turn back using optional params
    
    * [pr] Rustfmt
    
    * [pr] Fix lint
    ppodolsky committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    644fc05 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d4c9c6f View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. chore(ci): Test more features and MSRV (n0-computer#532)

    Adding explicit check and clippy steps for the default features,
    because --all-features enables the "testing" feature which in turn
    disables a bunch of production code.  Preferably we figure out how to
    not make --all-features skip prod code like this, but this is a stop
    gap in the mean time.
    
    Adding an explicit MSRV check and removing the rust-toolchain file.
    This means local dev will default to using the latest rust compiler
    and we'll not be surprised by failing CI that worked locally.  The
    explicit MSRV check makes it so that we at least notice when we break
    this.
    flub committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    066aefd View commit details
    Browse the repository at this point in the history
  2. fix(iroh-p2p): implement full local lookup (n0-computer#537)

    We were previously only returning the peer id, external addrs, and
    listening addrs. We now return the same content as performing a lookup
    on a remote peer.
    ramfox committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    0c388b9 View commit details
    Browse the repository at this point in the history
  3. chore: release v0.1.1 (n0-computer#541)

    see CHANGELOG.md for details
    b5 committed Nov 22, 2022
    Configuration menu
    Copy the full SHA
    9c3faed View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2022

  1. feat(ci): improve protoc install & add code coverage checks (n0-compu…

    …ter#538)
    
    * fix(ci): make protoc install more reliable
    
    * ops(ci): coverage
    
    * refactor(ci): cleanup CI
    Arqu committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    bcc20ce View commit details
    Browse the repository at this point in the history
  2. chore(deps): update libipld to 0.15

    This removes the use of prost at build time. cid and multihash are also updated
    accordingly.
    fabricedesre committed Nov 24, 2022
    Configuration menu
    Copy the full SHA
    ef89fe4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    291169d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    00b5fa2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    987bb98 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Configuration menu
    Copy the full SHA
    ae30f9e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18e2f40 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2022

  1. Configuration menu
    Copy the full SHA
    b93d918 View commit details
    Browse the repository at this point in the history
  2. fix(iroh-one): Wire up mem addresses to each other (n0-computer#555)

    This copies the mem-addresses in the config to the bits of config that
    are used by the individual services before starting them up.  This
    should help them talk to each other a little better.
    
    Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
    flub and dignifiedquire committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    ee9677d View commit details
    Browse the repository at this point in the history
  3. feat: Support eth domains

    ppodolsky committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    1d6b825 View commit details
    Browse the repository at this point in the history
  4. refactor: remove anyhow from iroh-util

    * remove ZombieLock error, replace with NoSuchProcess
    
    And added a little more detail to NoSuchProcess error. Clearly "ZombieLock" was a bad
    name, as I'd basically defined the error twice.
    
    switching to static str's caught a bunch of unnecessary closures with clippy :)
    
    Co-authored-by: Matthias Beyer <mail@beyermatthias.de>
    Co-authored-by: Friedel Ziegelmayer <me@dignifiedquire.com>
    3 people committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    e61f810 View commit details
    Browse the repository at this point in the history
  5. feat(gateway): add info page

    Add an info page with a bit of package information.
    
    
    Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>
    flub and Arqu committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    35955d6 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2022

  1. feat(unixfs): add rabin based chunking

    - implements rabin based chunking (following kubo & dagger)
    -expose chunker selection on the api & cli
    - improve the builder api for files
    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b0a5783 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d0d74f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a686090 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    48724a1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c314191 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0dab051 View commit details
    Browse the repository at this point in the history
  7. chore: add RELEASE.md

    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    0ad846a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b780237 View commit details
    Browse the repository at this point in the history
  9. Merge pull request n0-computer#560 from n0-computer/release-prep

    crates.io release prep
    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    b57cf13 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9f9ab27 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9d650b0 View commit details
    Browse the repository at this point in the history
  12. chore: Release

    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    58eeb29 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6f6fee0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    6ebee5f View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    59c5dc7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    078d23c View commit details
    Browse the repository at this point in the history
  17. Merge pull request n0-computer#561 from n0-computer/fixes-for-relase

    fixes for issues found during the 0.1.2 release
    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    cdfb710 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    13a7f0c View commit details
    Browse the repository at this point in the history
  19. chore: Release

    dignifiedquire committed Nov 28, 2022
    Configuration menu
    Copy the full SHA
    5702c3e View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2022

  1. Configuration menu
    Copy the full SHA
    8469b5e View commit details
    Browse the repository at this point in the history