[package]
edition = "2024"
name = "tern-sdk"
version = "0.1.0"
authors = ["Stencil Labs, Inc."]
build = false
exclude = ["tests/conformance.rs"]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Talk to Tern over the Tern Surface Protocol: typed node builders, diffing with derived ids, flow control, event routing, print/ask helpers and a plain-text fallback."
readme = "README.md"
license = "MIT"
repository = "https://github.com/stencil-hq/tern-sdk"
[lib]
name = "tern_sdk"
path = "src/lib.rs"
[[example]]
name = "ask"
path = "examples/ask.rs"
[[example]]
name = "chat"
path = "examples/chat.rs"
[[example]]
name = "progress"
path = "examples/progress.rs"
[[example]]
name = "table"
path = "examples/table.rs"
[[test]]
name = "session"
path = "tests/session.rs"
[dependencies.base64]
version = "0.23.1"
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.151"
[dependencies.sha2]
version = "0.10.9"
[dependencies.thiserror]
version = "2.0.21"
[dependencies.tracing]
version = "0.1.44"
features = [
"std",
"attributes",
]
default-features = false
[target."cfg(unix)".dependencies.libc]
version = "0.2.189"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Foundation",
"Win32_Globalization",
"Win32_Graphics_Dwm",
"Win32_Graphics_Gdi",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Security_Credentials",
"Win32_Security_Cryptography",
"Win32_Storage_FileSystem",
"Win32_System_ApplicationInstallationAndServicing",
"Win32_System_Com",
"Win32_System_Console",
"Win32_System_DataExchange",
"Win32_System_Diagnostics_Debug",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_IO",
"Win32_System_JobObjects",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_Ole",
"Win32_System_Performance",
"Win32_System_Pipes",
"Win32_System_Power",
"Win32_System_Registry",
"Win32_System_RemoteDesktop",
"Win32_System_StationsAndDesktops",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_UI_Controls",
"Win32_UI_HiDpi",
"Win32_UI_Input_Ime",
"Win32_UI_Input_KeyboardAndMouse",
"Win32_UI_Input_Pointer",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
]
[lints.clippy]
allow_attributes_without_reason = "warn"
assert_is_empty = "allow"
borrow_as_ptr = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
disallowed_macros = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
enum_glob_use = "allow"
float_cmp = "allow"
imprecise_flops = "allow"
inconsistent_struct_constructor = "allow"
inline_always = "allow"
items_after_statements = "allow"
let_underscore_untyped = "allow"
many_single_char_names = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
ptr_as_ptr = "allow"
redundant_closure_for_method_calls = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
suboptimal_flops = "allow"
tabs_in_doc_comments = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
tuple_array_conversions = "allow"
undocumented_unsafe_blocks = "warn"
unreadable_literal = "allow"
unsafe_derive_deserialize = "allow"
verbose_bit_mask = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.clippy.perf]
level = "warn"
priority = -1
[lints.clippy.style]
level = "warn"
priority = -1
[lints.clippy.suspicious]
level = "deny"
priority = -1
[lints.rust]
mismatched_lifetime_syntaxes = "allow"
missing_docs = "warn"