Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 92 additions & 48 deletions exonum-java-binding/core/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions exonum-java-binding/core/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ invocation = ["jni/invocation"]
[dependencies]
exonum = { version = "0.12", features = ["rocksdb_snappy", "rocksdb_lz4", "rocksdb_zlib", "rocksdb_bzip2"] }
exonum-derive = "0.12"
exonum-proto = "0.12"
exonum-time = "0.12"
exonum-testkit = "0.12"
exonum-cli = "0.12"
Expand Down Expand Up @@ -47,9 +48,10 @@ rpath = true

# FIXME: using git dependency until new Exonum with dynamic services will be released
[patch.crates-io]
exonum = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum-testkit = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum-time = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum-build = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum-derive = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum-cli = { git = "https://github.com/exonum/exonum", rev = "270def3" }
exonum = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-testkit = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-time = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-build = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-derive = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-cli = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
exonum-proto = { git = "https://github.com/exonum/exonum", rev = "47114e3" }
8 changes: 6 additions & 2 deletions exonum-java-binding/core/rust/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extern crate exonum_build;

use exonum_build::protobuf_generate;
use exonum_build::ProtobufGenerator;

use std::env::var_os;

fn main() {
Expand All @@ -12,5 +13,8 @@ fn main() {
println!("cargo:rustc-link-lib=dylib=c++");
}

protobuf_generate("../src/main/proto", &["src/proto"], "protobuf_mod.rs");
ProtobufGenerator::with_mod_name("protobuf_mod.rs")
.with_input_dir("../src/main/proto")
.add_path("../src/main/proto")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not even ask me about what is going on here and why we need two identical arguments for different methods.

.generate();
}
Loading