Go to file
Vladislav Tsarev d9523f5c15
Some checks failed
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:ubuntu-latest name:ubuntu target:x86_64-unknown-linux-gnu], map[rust:stable]) (push) Failing after 20s
Rust IPFS / lint-rust (push) Failing after 18s
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:macos-latest name:macos target:x86_64-apple-darwin], map[rust:stable]) (push) Has been cancelled
Rust IPFS / ${{ matrix.platform.name }} (map[cross:false host:windows-2019 name:windows target:x86_64-pc-windows-msvc], map[rust:stable]) (push) Has been cancelled
Rust IPFS / ci (push) Has been cancelled
update spec
2024-10-18 14:09:53 +03:00
.cargo Initial 2024-10-18 11:35:15 +03:00
.gear Initial 2024-10-18 11:35:15 +03:00
.github doc: sunset, make maint status clear 2022-09-22 10:26:29 +03:00
benches chore(lints): Post-rebase fmt and clippy fixes. 2021-08-04 15:01:03 +02:00
bitswap chore: clean up type signature 2022-04-01 12:11:40 +03:00
conformance test(conf): ignore pubsub tests on windows for now 2022-04-01 15:09:01 +03:00
examples doc: remove out of date fetch_and_cat comment 2020-10-08 10:16:41 +03:00
fuzz decode ipld cargo fuzz harness 2022-08-19 17:45:37 -05:00
http feat(http): add default values for --bits and --profile 2022-04-05 12:05:27 -04:00
src first attempt at fuzzer fixes 2022-08-19 18:36:49 -05:00
tests feat(test): added additional context on why test could fail 2022-04-01 16:53:12 +03:00
unixfs chore(unixfs): clippies 2022-01-31 12:10:00 +02:00
vendor Initial commit 2024-10-18 11:36:33 +03:00
.gitignore Initial 2024-10-18 11:35:15 +03:00
build.rs chore: remove the now-unused ipns functionalities 2020-09-22 11:52:30 +02:00
Cargo.lock Initial 2024-10-18 11:35:15 +03:00
Cargo.toml fix: updated libp2p in the bitswap crate 2022-04-01 12:11:39 +03:00
CHANGELOG.md chore(CHANGELOG): note #479 2022-04-06 16:32:19 +03:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-03-05 18:35:03 -05:00
CONTRIBUTING.md docs: use issues for questions 2021-01-07 13:21:23 +02:00
LICENSE-APACHE switch license from isc to mit/apl2.0 2020-02-23 17:18:08 +01:00
LICENSE-MIT switch license from isc to mit/apl2.0 2020-02-23 17:18:08 +01:00
README.md doc: sunset, make maint status clear 2022-09-22 10:26:29 +03:00
rust-ipfs.spec update spec 2024-10-18 14:09:53 +03:00


Rust IPFS

The Interplanetary File System (IPFS), implemented in Rust

Not Maintained

Table of Contents

Description

This repository contains the crates for the IPFS core implementation which includes a blockstore, a libp2p integration which includes DHT content discovery and pubsub support, and HTTP API bindings. Our goal is to leverage both the unique properties of Rust to create powerful, performant software that works even in resource-constrained environments, while also maximizing interoperability with the other "flavors" of IPFS, namely JavaScript and Go.

Project Status - Alpha Not Maintained

You can see details about what's implemented, what's not, and also learn about other ecosystem projects, at Are We IPFS Yet?

For more information about IPFS see: https://docs.ipfs.io/introduction/overview/

Install

Rust IPFS depends on protoc and openssl.

Dependencies

First, install the dependencies.

With apt:

$ apt-get install protobuf-compiler libssl-dev zlib1g-dev

With yum:

$ yum install protobuf-compiler libssl-dev zlib1g-dev

Install rust-ipfs itself

The rust-ipfs binaries can be built from source. Our goal is to always be compatible with the stable release of Rust.

$ git clone https://github.com/rs-ipfs/rust-ipfs && cd rust-ipfs
$ cargo build --workspace

You will then find the binaries inside of the project root's /target/debug folder.

Getting started

We recommend browsing the examples, the http crate tutorial and tests in order to see how to use Rust-IPFS in different scenarios.

Running the tests

The project currently features unit, integration, conformance and interoperability tests. Unit and integation tests can be run with:

$ cargo test --workspace

The --workspace flag ensures the tests from the http and unixfs crates are also run.

Explanations on how to run the conformance tests can be found here. The Go and JS interoperability tests are behind a feature flag and can be run with:

$ cargo test --feature=test_go_interop
$ cargo test --feature=test_js_interop

These are mutually exclusive, i.e. --all-features won't work as expected.

Note: you will need to set the GO_IPFS_PATH and the JS_IPFS_PATH environment variables to point to the relevant IPFS binary.

Contributing

See the contributing docs for more info.

If you have any questions on the use of the library or other inquiries, you are welcome to submit an issue.

Roadmap

Special thanks to the Web3 Foundation and Protocol Labs for their devgrant support.

Completed Work

  • Project Setup
  • Testing Setup
    • Conformance testing
  • HTTP API Scaffolding
  • UnixFS Support
  • /pubsub/{publish,subscribe,peers,ls}
  • /swarm/{connect,peers,addrs,addrs/local,disconnect}
  • /id
  • /version
  • /shutdown
  • /block/{get,put,rm,stat}
  • /dag/{put,resolve}
  • /refs and /refs/local
  • /bitswap/{stat,wantlist}
  • /cat
  • /get
  • /resolve

Work in Progress

  • /bootstrap
  • /dht
  • interop testing

Work still required

  • /name
  • /ping
  • /key
  • /config
  • /stats
  • /files (regular and mfs)
  • a few other miscellaneous endpoints not enumerated here

Maintainers

Rust IPFS was originally authored by @dvc94ch and was maintained by @koivunej, and @aphelionz. Special thanks is given to Protocol Labs and Equilibrium.

Its been noted that the Rust-IPFS name and popularity may serve its organization from a "first-mover" perspective. However, alternatives with different philosophies do exist, and we believe that supporting a diverse IPFS community is important and will ultimately help produce the best solution possible.

  • rust-ipfs-api - A Rust client for an existing IPFS HTTP API. Supports both hyper and actix.
  • ipfs-embed - An implementation based on sled
  • rust-ipld - Basic rust ipld library supporting dag-cbor, dag-json and dag-pb formats.
  • PolkaX's own rust-ipfs
  • Parity's rust-libp2p, which does a lot the of heavy lifting here

If you know of another implementation or another cool project adjacent to these efforts, let us know!

Contributors

Code Contributors

This project exists thanks to all the people who contribute. [Contribute].

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

Dual licensed under MIT or Apache License (Version 2.0). See LICENSE-MIT and LICENSE-APACHE for more details.

Trademarks

The Rust logo and wordmark are trademarks owned and protected by the Mozilla Foundation. The Rust and Cargo logos (bitmap and vector) are owned by Mozilla and distributed under the terms of the Creative Commons Attribution license (CC-BY).