-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
43 lines (37 loc) · 1.55 KB
/
Cargo.toml
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
[package]
name = "femtopb"
authors = ["David Flemström <[email protected]>"]
description = "A no-std, no-alloc set of tools for protobuf encoding and decoding"
repository = "https://github.com/dflemstr/femtopb"
categories = ["embedded", "encoding", "no-std", "no-std::no-alloc"]
keywords = ["protobuf", "proto"]
version = "0.8.0"
edition = "2021"
license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
femtopb-derive = { path = "derive", version = "0.8.0" }
no-panic = { version = "0.1.30", optional = true }
defmt = { version = "0.3.8", optional = true }
thiserror-no-std = { version = "2.0.2", optional = true }
[dev-dependencies]
bytes = "1.7.0"
proptest = "1.5.0"
proptest-derive = "0.5.0"
prost = "0.13.1"
[features]
# Enable link-time assertions ensuring that core femtopb functions can't possibly panic.
# It is recommended to only enable this feature to perform a "test build" (but still using the "release" profile/with
# optimizations turned on) as enabling it for release builds might impact code generation negatively.
# Useful in embedded contexts where you want to write ultra-reliable code that can't fail unexpectedly, want to minimize
# code size without having to resort to `panic = "abort"`, or want to avoid trapping into the panic handler for other
# reasons.
assert-no-panic = ["dep:no-panic"]
defmt = ["dep:defmt"]
thiserror = ["dep:thiserror-no-std"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
[workspace]
members = ["build", "examples/*", "derive"]