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
This commit is contained in:
2
.github/workflows/coveralls.yml
vendored
2
.github/workflows/coveralls.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
RUSTFLAGS: "-Cinstrument-coverage"
|
RUSTFLAGS: "-Cinstrument-coverage"
|
||||||
LLVM_PROFILE_FILE: "opensk-%p-%m.profraw"
|
LLVM_PROFILE_FILE: "opensk-%p-%m.profraw"
|
||||||
- name: Run grcov
|
- name: Run grcov
|
||||||
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/*"
|
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/*"
|
||||||
- uses: coverallsapp/github-action@1.1.3
|
- uses: coverallsapp/github-action@1.1.3
|
||||||
name: upload report to coveralls
|
name: upload report to coveralls
|
||||||
with:
|
with:
|
||||||
|
|||||||
22
Cargo.lock
generated
22
Cargo.lock
generated
@@ -11,15 +11,6 @@ dependencies = [
|
|||||||
"memchr",
|
"memchr",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "arbitrary"
|
|
||||||
version = "0.4.7"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "db55d72333851e17d572bec876e390cd3b11eb1ef53ae821dd9f3b653d2b4569"
|
|
||||||
dependencies = [
|
|
||||||
"derive_arbitrary",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "arrayref"
|
name = "arrayref"
|
||||||
version = "0.3.6"
|
version = "0.3.6"
|
||||||
@@ -100,7 +91,6 @@ dependencies = [
|
|||||||
name = "ctap2"
|
name = "ctap2"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arbitrary",
|
|
||||||
"arrayref",
|
"arrayref",
|
||||||
"byteorder",
|
"byteorder",
|
||||||
"crypto",
|
"crypto",
|
||||||
@@ -115,21 +105,9 @@ dependencies = [
|
|||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"rng256",
|
"rng256",
|
||||||
"sk-cbor",
|
"sk-cbor",
|
||||||
"subtle",
|
|
||||||
"uuid",
|
"uuid",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "derive_arbitrary"
|
|
||||||
version = "0.4.7"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b1a012b5e473dc912f0db0546a1c9c6a194ce8494feb66fa0237160926f9e0e6"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ed25519-compact"
|
name = "ed25519-compact"
|
||||||
version = "1.0.15"
|
version = "1.0.15"
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ rng256 = { path = "libraries/rng256" }
|
|||||||
persistent_store = { path = "libraries/persistent_store" }
|
persistent_store = { path = "libraries/persistent_store" }
|
||||||
byteorder = { version = "1", default-features = false }
|
byteorder = { version = "1", default-features = false }
|
||||||
arrayref = "0.3.6"
|
arrayref = "0.3.6"
|
||||||
subtle = { version = "2.2", default-features = false, features = ["nightly"] }
|
|
||||||
arbitrary = { version = "0.4.7", features = ["derive"], optional = true }
|
|
||||||
rand = { version = "0.8.4", optional = true }
|
rand = { version = "0.8.4", optional = true }
|
||||||
ed25519-compact = { version = "1", default-features = false, optional = true }
|
ed25519-compact = { version = "1", default-features = false, optional = true }
|
||||||
|
|
||||||
|
|||||||
@@ -38,13 +38,3 @@ enum-iterator = "0.6.0"
|
|||||||
sk-cbor = { path = "../cbor" }
|
sk-cbor = { path = "../cbor" }
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "0.8", features = ["v4"] }
|
||||||
openssl = "0.10.36"
|
openssl = "0.10.36"
|
||||||
|
|
||||||
[profile.dev]
|
|
||||||
panic = "abort"
|
|
||||||
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
|
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
panic = "abort"
|
|
||||||
lto = true # Link Time Optimization usually reduces size of binaries and static libraries
|
|
||||||
opt-level = "z"
|
|
||||||
codegen-units = 1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user