Registry / database / sled
library0.34.7rscratesunverified

Lightweight high-performance pure-rust transactional embedded database.

# Cargo.toml [dependencies] sled = "0.34.7"
INSTALL
IMPORT
SIG · SLED
S
sled
databaserustv0.34.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Db
use sled::Db;

Open a database, insert a key-value pair, and retrieve it.

use sled::Db; let db = Db::open("my_db").unwrap(); db.insert(b"key", b"value").unwrap(); let result = db.get(b"key").unwrap().unwrap(); println!("{:?}", result);
Debug
Known issues
gotchaSled uses a custom async runtime internally; ensure you are not mixing with other runtimes.
fix
Use sled in a single-threaded context or configure the runtime accordingly.
affects: >=0.30
Upgrade
Version history
0.34.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
sled — cargo add sled · libregistry