Skip to content

Commit

Permalink
Iteration 1.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand committed Oct 18, 2023
1 parent 540f49a commit 01b52fe
Show file tree
Hide file tree
Showing 8 changed files with 1,262 additions and 3 deletions.
10 changes: 7 additions & 3 deletions java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ name = "javababushka"
crate-type = ["cdylib"]

[dependencies]
redis = { path = "../submodules/redis-rs/redis", features = ["aio", "tokio-comp", "connection-manager", "tls", "tokio-rustls-comp"] }
babushka = { path = "../babushka-core" }
tokio = { version = "^1", features = ["rt", "macros", "rt-multi-thread", "time"] }
# redis = { path = "../submodules/redis-rs/redis", features = ["aio", "tokio-comp", "connection-manager", "tls", "tokio-rustls-comp"] }
# babushka = { path = "../babushka-core" }
# tokio = { version = "^1", features = ["rt", "macros", "rt-multi-thread", "time"] }
logger_core = {path = "../logger_core"}
tracing-subscriber = "0.3.16"
thiserror = "1.0.49"

[profile.release]
lto = true
debug = true

[build-dependencies]
cbindgen = "0.26.0"
17 changes: 17 additions & 0 deletions java/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extern crate cbindgen;

use std::env;
use cbindgen::Language;

fn main() {
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

cbindgen::Builder::new()
.with_crate(crate_dir)
.with_language(Language::Cxx)
//.with_cpp_compat(true)
.generate()
.expect("Unable to generate bindings")
//.write_to_file("bindings.h");
.write_to_file(format!("{}.hpp", env::var("CARGO_PKG_NAME").unwrap()));
}
Loading

0 comments on commit 01b52fe

Please sign in to comment.