add basic example for compiling upkr to a c library

This commit is contained in:
2023-03-12 13:45:23 +01:00
parent 080db40d00
commit 795e6c3090
8 changed files with 331 additions and 0 deletions

17
c_library/Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "upkr_c"
version = "0.0.1"
edition = "2021"
[lib]
name = "upkr"
crate-type = ["staticlib"]
[profile.release]
opt-level = "s"
strip = "debuginfo"
lto = true
panic = "abort"
[dependencies]
upkr = { path="..", default-features=false }