Skip to content

Commit

Permalink
refactor: Remove sled and redb dependency and datastore usage
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Sep 6, 2024
1 parent 1cf9156 commit 9227726
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 1,313 deletions.
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.

# 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

0 comments on commit 9227726

Please sign in to comment.