File tree Expand file tree Collapse file tree 6 files changed +16
-11
lines changed Expand file tree Collapse file tree 6 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ addons:
29
29
30
30
env :
31
31
global :
32
- - RUST_COMPILER_VERSION=1.32.0
32
+ - RUST_COMPILER_VERSION=stable
33
33
- OSX_PACKAGES="libsodium rocksdb pkg-config protobuf"
34
34
- ROCKSDB_LIB_DIR=/usr/lib
35
35
- SNAPPY_LIB_DIR=/usr/lib/x86_64-linux-gnu
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ You need to install the following dependencies:
19
19
* Linux or macOS. Windows support is coming soon. <!-- TODO: Link Java roadmap when it is published -->
20
20
* [ JDK 1.8+] ( https://jdk.java.net/12/ ) .
21
21
* [ Maven 3.5+] ( https://maven.apache.org/download.cgi ) .
22
- * [ Rust 1.32.0] ( https://www.rust-lang.org/ ) .
23
- To install a specific Rust version, use ` rustup install 1.32.0 ` command.
22
+ * [ Stable Rust] ( https://www.rust-lang.org/tools/install ) .
24
23
* The [ system dependencies] ( https://exonum.com/doc/version/0.11/get-started/install/ ) of Exonum.
25
24
You do _ not_ need to manually fetch and compile Exonum.
26
25
* For automatic packaging of the Exonum Java app you need [ CMake] ( https://cmake.org/ ) installed in your system.
Original file line number Diff line number Diff line change 21
21
<project .build.headersDirectory>${project.build.directory} /native-headers</project .build.headersDirectory>
22
22
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
23
23
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
24
- <!-- TODO: stable does not work well until ECR-1839 is resolved. -->
25
- <rust .compiler.version>1.32.0</rust .compiler.version>
26
- <rust .compiler.features>resource-manager</rust .compiler.features>
24
+ <rust .compiler.version>stable</rust .compiler.version>
25
+ <!-- Features for integration testing. At least "resource-manager" is required by Java integration tests. Ideally,
26
+ keeping them in sync with the ones that `integration_tests` crate require from the `java_bindings` crate allows
27
+ the native integration tests to avoid recompilation of the `java_binding` library. -->
28
+ <rust .compiler.features>resource-manager invocation</rust .compiler.features>
27
29
<rust .itSubCrate>integration_tests</rust .itSubCrate>
28
30
<rust .appSubCrate>exonum-java</rust .appSubCrate>
29
31
<!-- A directory containing libjava_bindings native library-->
Original file line number Diff line number Diff line change @@ -182,12 +182,18 @@ fn project_root_dir() -> PathBuf {
182
182
PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) )
183
183
}
184
184
185
+ /// The relative path to a directory that contains runtime dependencies of the integration tests
186
+ /// executed with `cargo test`. These dependencies include `java_bindings` library, which
187
+ /// is also required and loaded by Java code.
188
+ ///
189
+ /// This path is included in `java.library.path` JVM property, so that `java_bindings` library
190
+ /// can be discovered and loaded by Java.
185
191
#[ cfg( debug_assertions) ]
186
192
fn target_path ( ) -> & ' static str {
187
- "target/debug"
193
+ "target/debug/deps "
188
194
}
189
195
190
196
#[ cfg( not( debug_assertions) ) ]
191
197
fn target_path ( ) -> & ' static str {
192
- "target/release"
198
+ "target/release/deps "
193
199
}
Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ pub extern "system" fn Java_com_exonum_binding_service_NodeProxy_nativeSubmit(
117
117
service_id : jshort ,
118
118
transaction_id : jshort ,
119
119
) -> jbyteArray {
120
- use std:: ptr;
121
120
use utils:: convert_hash;
122
121
let res = panic:: catch_unwind ( || {
123
122
let node = cast_handle :: < NodeContext > ( node_handle) ;
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ export JAVA_LIB_DIR="$(find ${JAVA_HOME} -type f -name libjvm.\* | xargs -n1 dir
49
49
echo " JAVA_LIB_DIR=${JAVA_LIB_DIR} "
50
50
51
51
# Version of Rust used to build tests.
52
- # Using 1.32.0 until ECR-2982 is fixed.
53
- export RUST_COMPILER_VERSION=" ${RUST_COMPILER_VERSION:- 1.32.0} "
52
+ export RUST_COMPILER_VERSION=" ${RUST_COMPILER_VERSION:- stable} "
54
53
echo " RUST_COMPILER_VERSION: ${RUST_COMPILER_VERSION} "
55
54
56
55
# Find the directory containing Rust libstd.
You can’t perform that action at this time.
0 commit comments