Skip to content

Commit 80b82ff

Browse files
authored
LTO fix and toml cleanup (#608)
* Removes redundant entries from Cargo.toml This also fixes a compilation problem we have in debug mode with LTO enabled. * fix output-path triple dash
1 parent 6d5ea16 commit 80b82ff

File tree

4 files changed

+1
-35
lines changed

4 files changed

+1
-35
lines changed

.github/workflows/coveralls.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
RUSTFLAGS: "-Cinstrument-coverage"
4040
LLVM_PROFILE_FILE: "opensk-%p-%m.profraw"
4141
- name: Run grcov
42-
run: RUSTUP_TOOLCHAIN=nightly grcov . --binary-path ./libraries/opensk/target/debug/ --source-dir libraries/opensk/ --output-type lcov --ignore-not-existing ---output-path ./lcov.info --ignore "/*" --ignore "examples/*" --ignore "third_party/*"
42+
run: RUSTUP_TOOLCHAIN=nightly grcov . --binary-path ./libraries/opensk/target/debug/ --source-dir libraries/opensk/ --output-type lcov --ignore-not-existing --output-path ./lcov.info --ignore "/*" --ignore "examples/*" --ignore "third_party/*"
4343
- uses: coverallsapp/[email protected]
4444
name: upload report to coveralls
4545
with:

Cargo.lock

-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ rng256 = { path = "libraries/rng256" }
2121
persistent_store = { path = "libraries/persistent_store" }
2222
byteorder = { version = "1", default-features = false }
2323
arrayref = "0.3.6"
24-
subtle = { version = "2.2", default-features = false, features = ["nightly"] }
25-
arbitrary = { version = "0.4.7", features = ["derive"], optional = true }
2624
rand = { version = "0.8.4", optional = true }
2725
ed25519-compact = { version = "1", default-features = false, optional = true }
2826

libraries/opensk/Cargo.toml

-10
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,3 @@ enum-iterator = "0.6.0"
3838
sk-cbor = { path = "../cbor" }
3939
uuid = { version = "0.8", features = ["v4"] }
4040
openssl = "0.10.36"
41-
42-
[profile.dev]
43-
panic = "abort"
44-
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
45-
46-
[profile.release]
47-
panic = "abort"
48-
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
49-
opt-level = "z"
50-
codegen-units = 1

0 commit comments

Comments
 (0)