Skip to content

Commit d8a326f

Browse files
committed
release profile optimizations and formatting
1 parent 902f54d commit d8a326f

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed

Diff for: Cargo.toml

+11-10
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@ description = "Rust wrapper for Facebook's RocksDB embeddable database"
44
version = "0.22.1"
55
edition = "2021"
66
rust-version = "1.75.0"
7-
authors = ["Tyler Neely <[email protected]>", "David Greenberg <[email protected]>"]
7+
authors = [
8+
"Tyler Neely <[email protected]>",
9+
"David Greenberg <[email protected]>",
10+
]
811
repository = "https://github.com/zaidoon1/rust-rocksdb"
912
license = "Apache-2.0"
10-
categories = [ "database" ]
13+
categories = ["database"]
1114
keywords = ["database", "embedded", "LSM-tree", "persistence"]
1215
homepage = "https://github.com/zaidoon1/rust-rocksdb"
13-
exclude = [
14-
".gitignore",
15-
".travis.yml",
16-
"deploy.sh",
17-
"test/**/*",
18-
]
16+
exclude = [".gitignore", ".travis.yml", "deploy.sh", "test/**/*"]
1917

2018
[workspace]
2119
members = ["librocksdb-sys"]
@@ -37,11 +35,14 @@ serde1 = ["serde"]
3735
[dependencies]
3836
libc = "0.2"
3937
rust-librocksdb-sys = { path = "librocksdb-sys", version = "0.16.0" }
40-
serde = { version = "1", features = [ "derive" ], optional = true }
38+
serde = { version = "1", features = ["derive"], optional = true }
4139

4240
[dev-dependencies]
4341
trybuild = "1"
4442
tempfile = "3"
4543
pretty_assertions = "1"
4644
bincode = "1"
47-
serde = { version = "1", features = [ "derive" ] }
45+
serde = { version = "1", features = ["derive"] }
46+
47+
[profile.release]
48+
lto = "fat"

Diff for: librocksdb-sys/Cargo.toml

+13-5
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,20 @@ name = "rust-librocksdb-sys"
33
version = "0.16.0+8.10.0"
44
edition = "2021"
55
rust-version = "1.75.0"
6-
authors = ["Karl Hobley <[email protected]>", "Arkadiy Paronyan <[email protected]>"]
6+
authors = [
7+
"Karl Hobley <[email protected]>",
8+
"Arkadiy Paronyan <[email protected]>",
9+
]
710
license = "MIT/Apache-2.0/BSD-3-Clause"
811
description = "Native bindings to librocksdb"
912
readme = "README.md"
1013
repository = "https://github.com/zaidoon1/rust-rocksdb"
11-
keywords = [ "bindings", "ffi", "rocksdb" ]
12-
categories = [ "api-bindings", "database", "external-ffi-bindings" ]
14+
keywords = ["bindings", "ffi", "rocksdb"]
15+
categories = ["api-bindings", "database", "external-ffi-bindings"]
1316
links = "rocksdb"
1417

1518
[features]
16-
default = [ "static" ]
19+
default = ["static"]
1720
jemalloc = ["tikv-jemalloc-sys"]
1821
static = ["libz-sys?/static", "bzip2-sys?/static"]
1922
io-uring = ["pkg-config"]
@@ -26,7 +29,9 @@ rtti = []
2629

2730
[dependencies]
2831
libc = "0.2"
29-
tikv-jemalloc-sys = { version = "0.5", features = ["unprefixed_malloc_on_supported_platforms"], optional = true }
32+
tikv-jemalloc-sys = { version = "0.5", features = [
33+
"unprefixed_malloc_on_supported_platforms",
34+
], optional = true }
3035
lz4-sys = { version = "1.9", optional = true }
3136
zstd-sys = { version = "2.0", features = ["zdict_builder"], optional = true }
3237
libz-sys = { version = "1.1", default-features = false, optional = true }
@@ -41,3 +46,6 @@ cc = { version = "1.0", features = ["parallel"] }
4146
bindgen = { version = "0.69", default-features = false, features = ["runtime"] }
4247
glob = "0.3"
4348
pkg-config = { version = "0.3", optional = true }
49+
50+
[profile.release]
51+
lto = "fat"

0 commit comments

Comments
 (0)