-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
46 lines (40 loc) · 1.63 KB
/
Copy pathCargo.toml
File metadata and controls
46 lines (40 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[package]
name = "zk-nalloc"
version = "1.0.0"
edition = "2021"
rust-version = "1.79"
authors = ["nzengi <howyaniii@gmail.com>"]
description = "A Linux memory allocator tuned for zero-knowledge provers: a size-classed, huge-page-backed large-region cache that keeps freed buffers resident across proof rounds instead of returning them to the kernel."
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/zk-nalloc/nalloc"
homepage = "https://github.com/zk-nalloc/nalloc"
documentation = "https://docs.rs/zk-nalloc"
keywords = ["allocator", "zkp", "cryptography", "performance", "memory"]
categories = ["memory-management", "cryptography"]
exclude = [".github/", "benches/", "tests/"]
[features]
default = []
# Pick which allocator the benchmark binary installs as #[global_allocator], so
# the same benches measure each one head-to-head. Enable exactly one (if several
# are on, zk-nalloc wins, so `--all-features` still builds).
bench-global = [] # zk-nalloc
bench-jemalloc = ["dep:tikv-jemallocator"] # jemalloc
bench-mimalloc = ["dep:mimalloc"] # mimalloc
[dependencies]
libc = "0.2"
# Comparison allocators, only pulled in by the matching bench feature.
tikv-jemallocator = { version = "0.6", optional = true }
mimalloc = { version = "0.1", optional = true }
[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = ["cargo_bench_support"] }
[[bench]]
name = "zk_patterns"
harness = false
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]
[profile.bench]
lto = "thin"
codegen-units = 1