[package]
edition = "2021"
rust-version = "1.89"
name = "aprender-test-showcase"
version = "0.31.2"
authors = ["Noah Gift <noah@paiml.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "100% test coverage calculator showcase demonstrating Probar TUI + WASM testing"
homepage = "https://github.com/paiml/aprender"
readme = "README.md"
keywords = [
"calculator",
"tdd",
"testing",
"wasm",
"tui",
]
categories = ["development-tools::testing"]
license = "MIT"
repository = "https://github.com/paiml/aprender"
[features]
default = ["tui"]
tui = [
"dep:presentar-terminal",
"dep:crossterm",
]
wasm = [
"dep:wasm-bindgen",
"dep:web-sys",
"dep:console_error_panic_hook",
]
[lib]
name = "aprender_test_showcase"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "calculator_tui"
path = "examples/calculator_tui.rs"
required-features = ["tui"]
[[example]]
name = "calculator_tui_demo"
path = "examples/calculator_tui_demo.rs"
[[example]]
name = "calculator_wasm_demo"
path = "examples/calculator_wasm_demo.rs"
[[example]]
name = "gui_coverage_report"
path = "examples/gui_coverage_report.rs"
[[test]]
name = "gui_coverage_tests"
path = "tests/gui_coverage_tests.rs"
[[test]]
name = "keypad_proptests"
path = "tests/keypad_proptests.rs"
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.crossterm]
version = "0.28"
optional = true
[dependencies.presentar-terminal]
version = "0.31.2"
optional = true
package = "aprender-present-terminal"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dependencies.web-sys]
version = "0.3"
features = [
"Document",
"Element",
"HtmlElement",
"HtmlInputElement",
"HtmlButtonElement",
"Window",
"Event",
"EventTarget",
"KeyboardEvent",
"MouseEvent",
"console",
]
optional = true
[dev-dependencies.jugar-probar]
version = "1.0"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"rt-multi-thread",
"macros",
]
[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 = "allow"
missing_docs = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "allow"
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"))',
]