-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
87 lines (71 loc) · 1.91 KB
/
Cargo.toml
File metadata and controls
87 lines (71 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Copyright © 2025 Stephan Kunz
[package]
resolver = "3"
name = "tinyscript"
version = "0.5.1"
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 = [
#"fair_mutex",
"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' # Optimize for size.
lto = true # Enable Link Time Optimisation
codegen-units = 1 # Reduced to increase optimisations
overflow-checks = true # useful
[profile.production]
inherits = "release"
panic = 'abort' # Abort on panic
strip = "symbols" # Strip symbols from binary
[profile.samply]
inherits = "release"
debug = true # Create debug symbols for profiling