Floris Bruynooghe eb18a89fa6 fix: Output writing (#804)
This simply delegates to eprintln! for writing output.  This ensures
writes happen more synchronously and the flaky integration tests are
fixed.

While in theory these are blocking operations on the async executor,
this is acceptable because:

- We already use println!() without any problems.  Arguably this is
  more of an issue since we also write data to stdout but it isn't
  because we don't do that at the same time.

- We print a small number of messages, not large amounts of data.  Any
  blocking from this will be small.

- This acquires a sync mutex while writing, that's fine because it is
  acquired and released in the same chunk of async code and not held
  across await points.  This is unlikely to block much as only main
  writes and only one write happens at a time.

- When logging via tracing is enabled this will also end up logging on
  here and will compete for the lock.  This is slightly higher
  contention but doesn't really interfere with the logging here.
2023-02-28 18:34:54 +01:00
2023-02-28 18:34:54 +01:00
2023-01-09 17:37:25 +01:00
2023-02-22 15:24:34 +01:00
2023-01-18 11:18:04 +01:00
2023-01-18 11:18:04 +01:00
2023-02-24 11:00:33 +01:00

iroh

IPFS reimagined.


Usage

Cli

Sending data

$ ./iroh provide <file>

Receiving data

$ ./iroh get <hash>

As a library

Disable default features when using iroh as a library: iroh = { version: "...", default-features = false }

This removes dependencies that are only relevant when using iroh as a cli.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

S
Description
IP addresses break, dial keys instead. A library that adds QUIC + NAT Traversal to your apps.
Readme
435 MiB
Languages
Rust 99.6%
Shell 0.3%