Skip to content

Commit

Permalink
bump dependencies and add coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Dec 1, 2024
1 parent 7dc2b63 commit 7bde23e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea
.history
Cargo.lock
*.profraw
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@ exclude = ["vscode/", "dist/", ".vscode", ".history", ".git", ".github"]

[workspace.dependencies]

anyhow = "1.0.92"
anyhow = "1.0.93"
bincode = "1.3.3"
dirs = "5.0.1" # todo maybe replace by the home crate
log = "0.4.22"
nom = "7.1.3"
libloading = "0.8.5"
libloading = "0.8.6"
nu-ansi-term = "0.50.1"
rustyline = "14.0.0"
rustyline-derive = "0.10.0"
serde = { version = "1.0.214", features = ['serde_derive', 'rc'] }
rustyline = "15.0.0"
rustyline-derive = "0.11.0"
serde = { version = "1.0.215", features = ['serde_derive', 'rc'] }
serde_json = "1.0.132"
slab_tree = "0.3.2"
strum = { version = "0.26.3", features = ["derive"] }
ctrlc = "3.4.5"
env_logger = { version = "0.11.5", default-features = false }
arboard = "3.4.1"
regex = { version = "1.11.1", default-features = false, features = ["std"] }
serial_test = "3.1.1"
serial_test = "3.2.0"

# wasm
wasm-bindgen = { version = "0.2.95" }
wasm-bindgen = { version = "0.2.97" }
console_error_panic_hook = { version = "0.1.7" }
serde-wasm-bindgen = "0.6.5"
wee_alloc = "0.4.5"
wasm-bindgen-test = "0.3.45"
web-sys = "0.3.72"
js-sys = "0.3.72"
wasm-bindgen-test = "0.3.47"
web-sys = "0.3.74"
js-sys = "0.3.74"

# workspace specific libs
adana-script-core = { version = "0.18.3", path = "./adana-script-core" }
Expand Down
Binary file modified adana-script/dynamic_lib/libplugin_example.so
Binary file not shown.
20 changes: 20 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Doc for grcov
# https://github.com/mozilla/grcov
#

function deleteProfRawFile {
find . -name "*.profraw" -type f -delete
}

set -xe
deleteProfRawFile
cargo clean
export RUSTFLAGS="-Cinstrument-coverage"
cargo build
export LLVM_PROFILE_FILE="adana-%p-%m.profraw"
cargo test
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/coverage/
xdg-open "target/debug/coverage/index.html"
deleteProfRawFile
1 change: 1 addition & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[toolchain]
channel = "1.82"
components = ["llvm-tools-preview"] # for coverage

0 comments on commit 7bde23e

Please sign in to comment.