This uses CMake to build a simple Rust library (in `src/tc/rust`) that just re-exports everything from the `taskchampion-lib` crate. The C++ wrappers then wrap this into C++ objects with proper lifecycle maintenance, in the `tc` namespace. The C++ wrappers are incomplete, and missing methods are tagged with "TODO". These will be added as needed.
17 lines
287 B
TOML
17 lines
287 B
TOML
[package]
|
|
name = "taskchampion-lib"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
#[lib]
|
|
#name = "taskchampionlib"
|
|
#crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
libc = "0.2.126"
|
|
taskchampion = { path = "../taskchampion" }
|
|
anyhow = "1.0"
|
|
|
|
[dev-dependencies]
|
|
pretty_assertions = "1"
|