Skip to content

Commit 02181e2

Browse files
authored
Add a C wrapper for CipherCore's graph generation (#9)
Resolves #8
1 parent 65ef670 commit 02181e2

23 files changed

+2463
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
members = [
44
"ciphercore-utils",
55
"ciphercore-base",
6+
"ciphercore-adapters",
67
]

cbindgen.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language = "C"
2+
documentation = false
3+
include_guard = "CIPHERCORE_ADAPTER_H"
4+
[parse]
5+
# Whether to parse dependent crates and include their types in the output
6+
# default: false
7+
parse_deps = true
8+
include = ["ciphercore-base", "ciphercore-utils"]

ciphercore-adapters/Cargo.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[package]
2+
name = "ciphercore-adapters"
3+
version = "0.1.0"
4+
authors = ["CipherMode Labs, Inc."]
5+
edition = "2021"
6+
7+
[dependencies]
8+
ciphercore-base = { path = "../ciphercore-base" }
9+
ciphercore-utils = { path = "../ciphercore-utils" }
10+
serde = { version = "1.0.130", features = ["derive", "rc"] }
11+
serde_json = "1.0.68"
12+
typetag = "0.1.7"
13+
petgraph = "0.6.0"
14+
maplit = "1.0.2"
15+
openssl = "0.10"
16+
rand = "0.8"
17+
chrono = "0.4.19"
18+
atomic_refcell = "0.1.8"
19+
env_logger = "0.9.0"
20+
clap = { version = "3.0.14", features = ["derive"] }
21+
ndarray = "0.15.1"
22+
json = "0.12.4"
23+
24+
[dev-dependencies]
25+
serde_test = "1.0.130"
26+
27+
[lib]
28+
name= "cadapter"
29+
crate-type = ["staticlib","dylib"]
30+
31+
[features]
32+
default = []
33+
nightly-features = []
34+

0 commit comments

Comments
 (0)