-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
I was redirected to this file from: https://www.iroh.computer/docs/quickstart#what-we-ll-build
When I run cargo run it says:
Compiling file-transfer v0.1.0 (/home/file-transfer)
error[E0433]: failed to resolve: could not find `rpc` in `iroh_blobs`
--> src/main.rs:7:5
|
7 | rpc::client::blobs::{ReadAtLen, WrapOption},
| ^^^ could not find `rpc` in `iroh_blobs`
|
note: found an item that was configured out
--> /home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iroh-blobs-0.31.0/src/lib.rs:45:9
|
45 | pub mod rpc;
| ^^^
note: the item is gated behind the `rpc` feature
--> /home/.cargo/registry/src/index.crates.io-6f17d22bba15001f/iroh-blobs-0.31.0/src/lib.rs:44:7
|
44 | #[cfg(feature = "rpc")]
| ^^^^^^^^^^^^^^^
error[E0599]: no method named `client` found for struct `Blobs` in the current scope
--> src/main.rs:29:23
|
29 | let blobs = blobs.client();
| ^^^^^^ method not found in `Blobs<Store>`
Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
error: could not compile `file-transfer` (bin "file-transfer") due to 2 previous errors
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done