Skip to content

Commit

Permalink
Merge pull request #433 from hotg-ai/feature/logging
Browse files Browse the repository at this point in the history
Instrument the Zune runtime with tracing logs
  • Loading branch information
Michael Bryan authored Jun 3, 2022
2 parents 135f641 + 467bce6 commit d73fee3
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 237 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 17 additions & 53 deletions crates/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,34 @@ name = "hotg-rune-runtime"
readme = "README.md"
repository = "https://github.com/hotg-ai/rune"
version = "0.11.3"

[dependencies]
anyhow = "1.0.40"
log = "0.4.14"
csv = { version = "1.1.6", optional = true }
hotg-rune-compiler = { version = "^0.11.0", path = "../compiler" }
hotg-rune-core = { version = "^0.11.0", path = "../rune-core", features = ["std"] }
hotg-runecoral = { version = "0.3.12", optional = true }
hound = { version = "3.4.0", optional = true }
image = { version = "0.23.14", optional = true }
indexmap = { version = "1.8.0", features = ["serde-1"] }
log = "0.4.17"
rand = { version = "0.8.3", optional = true }
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
thiserror = "1.0.30"
tracing = { version = "0.1.33", features = ["attributes", "log"] }
wasm3 = { git = "https://github.com/wasm3/wasm3-rs", optional = true }
wasmer = { version = "2.2.0-rc2", optional = true }
wasmparser = "0.83.0"
wit-bindgen-wasmer = { git = "https://github.com/wasmerio/wit-bindgen", branch = "wasmer" }
tracing = { version = "0.1.33", features = ["attributes"] }
tracing-subscriber = { version = "0.3.11", features = ["env-filter"] }
indexmap = { version = "1.8.0", features = ["serde-1"] }

[dependencies.csv]
optional = true
version = "1.1.6"

[dependencies.hotg-rune-compiler]
path = "../compiler"
version = "^0.11.0"

[dependencies.hotg-rune-core]
features = ["std"]
path = "../rune-core"
version = "^0.11.0"

[dependencies.hotg-runecoral]
optional = true
version = "0.3.12"

[dependencies.hound]
optional = true
version = "3.4.0"

[dependencies.image]
optional = true
version = "0.23.14"

[dependencies.rand]
optional = true
version = "0.8.3"

[dependencies.serde]
features = ["derive"]
version = "1.0.136"

[dependencies.serde_json]
version = "1.0.79"

[dependencies.wasm3]
git = "https://github.com/wasm3/wasm3-rs"
optional = true

[dependencies.wasmer]
optional = true
version = "2.2.0-rc2"

[dependencies.zip]
optional = true
version = "0.6.2"
zip = { version = "0.6.2", optional = true }

[dev-dependencies]
tempfile = "3.2.0"

[features]
builtins = ["hound", "image", "rand", "rand/small_rng", "csv"]
default = ["builtins", "tflite", "zune"]
builtins = ["hound", "image", "rand", "rand/small_rng", "csv"]
tflite = ["hotg-runecoral"]
unstable_doc_cfg = []
zune = ["wasmer", "zip"]
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ pub use crate::{
engine::LoadError,
outputs::OutputTensor,
runtime::Runtime,
tensor::{ElementType, Tensor, TensorElement}
tensor::{ElementType, Tensor, TensorElement},
};
Loading

0 comments on commit d73fee3

Please sign in to comment.