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

refactor: Remove sled and redb dependency and datastore usage #304

Merged
merged 2 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- refactor: Support multiple certificates for wss. [PR 295](https://github.com/dariusc93/rust-ipfs/pull/295)
- refactor: Remove redundant static lifetime. [PR 301](https://github.com/dariusc93/rust-ipfs/pull/301)
- refactor: Remove optional error from `UnixfsStatus`.
- refactor: Remove sled and redb datastore and dependency. [PR 304](https://github.com/dariusc93/rust-ipfs/pull/304)

# 0.11.21
- chore: Put libp2p-webrtc-websys behind feature.
Expand Down
113 changes: 17 additions & 96 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ experimental_stream = ["dep:libp2p-stream"]

webrtc_transport = ["dep:libp2p-webrtc", "dep:libp2p-webrtc-websys"]

sled_data_store = ["dep:sled"]
redb_data_store = ["dep:redb"]
test_go_interop = []
test_js_interop = []

Expand Down Expand Up @@ -63,7 +61,6 @@ quick-protobuf-codec = "0.3.1"
rand = "0.8.5"
rand_chacha = "0.3.1"
rcgen = { version = "0.13.1", features = ["pem", "x509-parser"] }
redb = { version = "1.3.0" }
rlimit = "0.10.2"
rust-ipns = { version = "0.6.0", path = "packages/rust-ipns" }
rust-unixfs = { version = "0.5.0", path = "unixfs" }
Expand All @@ -76,7 +73,6 @@ serde_json = { default-features = false, version = "1.0.127" }
serde-wasm-bindgen = "0.6"
sha2 = "0.10.8"
simple_x509 = "=1.1.0"
sled = { version = "0.34.7" }
thiserror = { default-features = false, version = "1.0.63" }
tracing = { default-features = false, features = ["log"], version = "0.1.40" }
tracing-futures = { default-features = false, features = [
Expand Down Expand Up @@ -149,10 +145,8 @@ hickory-resolver.workspace = true
libp2p = { features = ["gossipsub", "autonat", "relay", "dcutr", "identify", "kad", "websocket", "tcp", "macros", "tokio", "noise", "tls", "ping", "yamux", "dns", "mdns", "ed25519", "secp256k1", "ecdsa", "rsa", "serde", "request-response", "json", "cbor", "rendezvous", "upnp", "quic", ], workspace = true }
libp2p-webrtc = { workspace = true, features = ["tokio", ], optional = true }
rcgen.workspace = true
redb = { workspace = true, optional = true }
rlimit.workspace = true
simple_x509.workspace = true
sled = { workspace = true, optional = true }
tokio = { features = ["full"], workspace = true }
tokio-stream = { workspace = true, features = ["fs"] }
tokio-util = { workspace = true, features = ["full"] }
Expand Down
6 changes: 0 additions & 6 deletions src/repo/datastore/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#[cfg(not(target_arch = "wasm32"))]
pub mod flatfs;
pub mod memory;
#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "redb_data_store")]
pub mod redb;
#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "sled_data_store")]
pub mod sled;

#[cfg(target_arch = "wasm32")]
pub mod idb;
Loading