[package]
edition = "2021"
rust-version = "1.75"
name = "aprender-viz"
version = "0.29.0"
authors = ["PAIML Team"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SIMD/GPU/WASM-accelerated visualization library for data science and ML"
documentation = "https://docs.rs/trueno-viz"
readme = "README.md"
keywords = [
"visualization",
"simd",
"gpu",
"wasm",
"data-science",
]
categories = [
"visualization",
"graphics",
"science",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/paiml/trueno-viz"
[package.metadata.docs.rs]
rustdoc-args = [
"--generate-link-to-definition",
"--cfg",
"docsrs",
]
all-features = true
[package.metadata.release]
shared-version = true
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"
[features]
accel-full = [
"gpu-full",
"gpu-iokit",
"afterburner",
"apple-hardware",
]
afterburner = ["monitor"]
apple-hardware = [
"monitor",
"dep:manzana",
]
db = ["dep:trueno-db"]
default = []
full = [
"gpu",
"parallel",
"ml",
"graph",
"db",
"terminal",
"svg",
"monitor",
]
gpu = ["trueno/gpu"]
gpu-full = [
"gpu-wgpu",
"monitor-nvidia",
]
gpu-iokit = ["monitor"]
gpu-wasm = [
"trueno/gpu-wasm",
"wasm",
]
gpu-wgpu = [
"monitor",
"dep:wgpu",
]
graph = ["dep:trueno-graph"]
ml = [
"dep:aprender",
"dep:entrenar",
"dep:serde",
]
monitor = [
"dep:ratatui",
"dep:crossterm",
"dep:serde",
"dep:serde_yaml_ng",
"dep:dirs",
]
monitor-full = [
"monitor-nvidia",
"monitor-tls",
"monitor-stack",
"gpu-wgpu",
]
monitor-nvidia = [
"monitor",
"dep:nvml-wrapper",
]
monitor-remote = [
"monitor",
"dep:tokio",
"dep:rmp-serde",
]
monitor-stack = [
"monitor",
"dep:realizar",
"dep:entrenar",
"dep:repartir",
]
monitor-tls = [
"monitor-remote",
"dep:rustls",
]
parallel = ["trueno/parallel"]
svg = []
terminal = []
wasm = [
"dep:wasm-bindgen",
"dep:js-sys",
"dep:web-sys",
]
[lib]
name = "trueno_viz"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "trueno-agent"
path = "src/bin/trueno_agent.rs"
required-features = ["monitor-remote"]
[[bin]]
name = "trueno-monitor"
path = "src/bin/trueno_monitor.rs"
required-features = ["monitor"]
[[example]]
name = "aprender_integration"
path = "examples/aprender_integration.rs"
required-features = ["ml"]
[[example]]
name = "box_violin"
path = "examples/box_violin.rs"
[[example]]
name = "btop"
path = "examples/btop.rs"
required-features = ["monitor"]
[[example]]
name = "confusion_matrix_ml"
path = "examples/confusion_matrix_ml.rs"
[[example]]
name = "dashboard_widgets"
path = "examples/dashboard_widgets.rs"
[[example]]
name = "force_graph"
path = "examples/force_graph.rs"
[[example]]
name = "grammar_of_graphics"
path = "examples/grammar_of_graphics.rs"
[[example]]
name = "heatmap_correlation"
path = "examples/heatmap_correlation.rs"
[[example]]
name = "loss_training"
path = "examples/loss_training.rs"
[[example]]
name = "readme_demo"
path = "examples/readme_demo.rs"
[[example]]
name = "roc_pr_curves"
path = "examples/roc_pr_curves.rs"
[[example]]
name = "scatter_basic"
path = "examples/scatter_basic.rs"
[[example]]
name = "simd_kernels"
path = "examples/simd_kernels.rs"
required-features = ["monitor"]
[[example]]
name = "svg_output"
path = "examples/svg_output.rs"
[[example]]
name = "terminal_output"
path = "examples/terminal_output.rs"
[[example]]
name = "test_macos_collectors"
path = "examples/test_macos_collectors.rs"
required-features = ["monitor"]
[[example]]
name = "text_prompt"
path = "examples/text_prompt.rs"
[[example]]
name = "trueno_graph_integration"
path = "examples/trueno_graph_integration.rs"
required-features = ["graph"]
[[test]]
name = "collectors_macos_test"
path = "tests/collectors_macos_test.rs"
[[test]]
name = "pixel_verification_test"
path = "tests/pixel_verification_test.rs"
[[test]]
name = "popperian_falsification_test"
path = "tests/popperian_falsification_test.rs"
[[test]]
name = "wgpu_multi_gpu_test"
path = "tests/wgpu_multi_gpu_test.rs"
[[bench]]
name = "encoder_benchmark"
path = "benches/encoder_benchmark.rs"
harness = false
[[bench]]
name = "framebuffer_benchmark"
path = "benches/framebuffer_benchmark.rs"
harness = false
[[bench]]
name = "heatmap_benchmark"
path = "benches/heatmap_benchmark.rs"
harness = false
[[bench]]
name = "histogram_benchmark"
path = "benches/histogram_benchmark.rs"
harness = false
[[bench]]
name = "line_benchmark"
path = "benches/line_benchmark.rs"
harness = false
[[bench]]
name = "scatter_benchmark"
path = "benches/scatter_benchmark.rs"
harness = false
[dependencies.aprender]
version = "0.29.0"
optional = true
package = "aprender-core"
[dependencies.base64]
version = "0.22"
[dependencies.batuta-common]
version = "0.1"
[dependencies.crossterm]
version = "0.29"
optional = true
[dependencies.dirs]
version = "5.0"
optional = true
[dependencies.entrenar]
version = "0.6"
optional = true
[dependencies.manzana]
version = "0.2"
optional = true
[dependencies.nvml-wrapper]
version = "0.10"
optional = true
[dependencies.png]
version = "0.17"
[dependencies.ratatui]
version = "0.30"
optional = true
[dependencies.realizar]
version = "0.7"
optional = true
[dependencies.repartir]
version = "2.0"
optional = true
[dependencies.rmp-serde]
version = "1.3"
optional = true
[dependencies.rustls]
version = "0.23"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_yaml_ng]
version = "0.10"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.0"
features = [
"net",
"rt-multi-thread",
"sync",
"time",
]
optional = true
[dependencies.trueno]
version = "0.17"
default-features = false
[dependencies.trueno-db]
version = "0.3.16"
optional = true
[dependencies.trueno-graph]
version = "0.1.17"
optional = true
default-features = false
[dependencies.wgpu]
version = "24"
optional = true
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.criterion]
version = "0.6"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.4"
[dev-dependencies.ratatui]
version = "0.30"
[dev-dependencies.tempfile]
version = "3.10"
[target.'cfg(target_os = "linux")'.dependencies.js-sys]
version = "0.3"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.wasm-bindgen]
version = "0.2"
optional = true
[target.'cfg(target_os = "linux")'.dependencies.web-sys]
version = "0.3"
features = ["console"]
optional = true
[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cloned_ref_to_slice_refs = "allow"
const_is_empty = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
empty_line_after_outer_attr = "allow"
erasing_op = "allow"
excessive_precision = "allow"
explicit_deref_methods = "warn"
explicit_iter_loop = "warn"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
iter_cloned_collect = "allow"
large_stack_arrays = "allow"
len_zero = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_ok_or = "warn"
manual_range_contains = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
nonminimal_bool = "allow"
overly_complex_bool_expr = "allow"
print_literal = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_guards = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_literal_bound = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "warn"
useless_vec = "allow"
vec_init_then_push = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "allow"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(coverage_nightly)",
'cfg(feature, values("explainable-monitor-integration"))',
]
[profile.bench]
opt-level = 3
lto = "thin"
[profile.dev]
opt-level = 1
panic = "abort"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"