[package]
resolver = "3"
name = "tinyscript"
version = "0.5.0"
edition = "2024"
license = "MIT OR Apache-2.0"
authors = ["stepkun <stephan.kunz@kabelbw.de>"]
description = "Tiny, C-like scripting language."
rust-version = "1.90.0"
repository = "https://github.com/stepkun/tinyscript"
homepage = "https://github.com/stepkun/tinyscript"
documentation = "https://docs.rs/tinyscript"
readme = "README.md"
keywords = ["automation", "script", "scripting"]
categories = ["development-tools"]
exclude = ["laze*", "benches/**", "embedded/**", "examples/**", "tests/**"]
[lib]
name = "tinyscript"
[lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(context, values(any()))',
] }
unsafe_code = "warn"
unused_must_use = "warn"
[lints.rustdoc]
private_intra_doc_links = "allow"
[lints.clippy]
enum_glob_use = "deny"
expect_used = "deny"
nursery = { level = "deny", priority = -1 }
panic = "deny"
pedantic = { level = "deny", priority = -1 }
unwrap_used = "deny"
[[bench]]
name = "equality"
harness = false
[[bench]]
name = "comparison"
harness = false
[[bench]]
name = "expression"
harness = false
[dependencies]
tinyscript-derive = { path = "derive", version = "0.2.3" }
spin = { version = "0.10.0", default-features = false, features = [
"portable-atomic",
"rwlock",
"use_ticket_mutex",
] }
[dev-dependencies]
criterion = "0.8.1"
doc-comment = "0.3.4"
rstest = "0.26.1"
[features]
default = ["std"]
std = ["spin/std"]
[profile.release]
opt-level = 's'
lto = true
codegen-units = 1
overflow-checks = true
[profile.production]
inherits = "release"
panic = 'abort'
strip = "symbols"
[profile.samply]
inherits = "release"
debug = true