I LITERALLY tried everything, when I do cargo clean
and then cargo build
, it takes almost 10 minutes to build because of rocksdb
, below is my Cargo.toml
file, I have only 2 or 3 files of code which are only around 50 line each. I have MacBook Pro 2017, corei17, 16gb ram and have 150gb free storage.
I installed rocksdb as brew install rocksdb
and installed ccache
but still takes THIS much to build.
[package]
name = "hgdb_core"
version = "0.1.0"
edition = "2021"
[[test]]
name = "db_config_test"
path = "tests/db_config_test.rs"
[[test]]
name = "simple_h_edge_test"
path = "tests/simple_h_edge_test.rs"
[profile.dev]
incremental = true
[profile.release]
incremental = true
debug = false
opt-level = 3
[dependencies]
bincode = "1.3.3"
quote = "1.0.38"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rocksdb = "0.23.0"
Activity Monitor
VSCODE terminal:
✗ cargo build --release
Compiling librocksdb-sys v0.17.1+9.9.3
Compiling rocksdb v0.23.0
Compiling hgdb_core v0.1.0 (/Users/gigin/Documents/GitHub/HG-db/hgdb_core)
Finished `release` profile [optimized] target(s) in 9m 41s
HG-db/hgdb_core on main is