by default crate linked as shared library
with:
//cat src/main.rs
use secded::SecDed64;
use secded::SecDedCodec;
fn main() {
let secded = SecDed64::new(56);
println!("code_size {}", secded.code_size());
let before: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 0];
let mut buf: [u8; 8] = before;
secded.encode(&mut buf);
secded.decode(&mut buf).unwrap();
assert_eq!(before, buf);
}
#cat Cargo.toml
[package]
name = "foo"
version = "0.1.0"
authors = ["Evgeniy A. Dushistov <dushistov@mail.ru>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
secded = "1.0.1"
$ ldd target/debug/foo | grep secded
libsecded-07bbedaae9031f98.so => not found
so the create is not builtin, it used as shared library, this make deploy quite complex.