Skip to content
Open
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
54 changes: 53 additions & 1 deletion Cargo.lock

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

31 changes: 28 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,27 @@ description = "A Rust package allowing sharing of data between processes in a wa
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/cloudflare/mmap-sync"
keywords = ["memory-mapping", "synchronization", "interprocess", "wait-free", "zero-copy"]
categories = ["os", "filesystem", "concurrency", "data-structures", "memory-management"]
keywords = [
"memory-mapping",
"synchronization",
"interprocess",
"wait-free",
"zero-copy",
]
categories = [
"os",
"filesystem",
"concurrency",
"data-structures",
"memory-management",
]

[dependencies]
bytecheck = { version = "~0.6.8", default-features = false }
csv = "1.3.1"
memmap2 = "0.9.4"
nix = { version = "0.29.0", features = ["sched", "process"] }
rand_distr = "0.4.3"
rkyv = { version = "0.7.40", features = ["validation", "strict"] }
thiserror = "1.0.30"
wyhash = "0.5.0"
Expand All @@ -25,7 +40,11 @@ libc = "0.2.0"

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
pprof = { version = "0.14.0", features = ["flamegraph", "protobuf-codec", "criterion"] }
pprof = { version = "0.14.0", features = [
"flamegraph",
"protobuf-codec",
"criterion",
] }
proptest = "1.0.0"
rand = "0.8.5"

Expand All @@ -35,3 +54,9 @@ harness = false

[package.metadata.docs.rs]
all-features = true

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
2 changes: 1 addition & 1 deletion benches/synchronizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn build_mock_data() -> (HelloWorld, AlignedVec) {

fn derive_shm_path(subpath: &str) -> String {
const EV_NAME: &str = "MMAPSYNC_BM_ROOTDIR";
const DEFAULT_ROOT: &str = "/dev/shm"; // respect original functionality
const DEFAULT_ROOT: &str = "/tmp/hello_world"; // respect original functionality

let selected_root: String = match env::var(EV_NAME) {
Ok(val) => {
Expand Down
Binary file added best_bid_ask_data_0
Binary file not shown.
Binary file added best_bid_ask_data_1
Binary file not shown.
Binary file added best_bid_ask_state
Binary file not shown.
Loading