Commit eea99086 authored by trinity-1686a's avatar trinity-1686a 💜
Browse files

update to arti 0.0.4

and fix invalid dylib name in android example
parent a36b414c
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
......
......@@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -3,6 +3,6 @@ package net.example;
class MyClass {
static native String myMethod(final String target, final String storage);
static {
System.loadLibrary("arti_jni");
System.loadLibrary("arti_mobile");
}
}
......@@ -6,8 +6,8 @@ edition = "2018"
[dependencies]
# use fixed commits because Arti does not have a stable Rust API yet
arti-client = { version = "=0.0.3", features=["static"]}
tor-rtcompat = "=0.0.3"
arti-client = { version = "=0.0.4", features=["static"]}
tor-rtcompat = "=0.0.4"
# helpers
anyhow = "1.0.52"
......
......@@ -2,7 +2,7 @@ use anyhow::Result;
use futures::{AsyncReadExt, AsyncWriteExt};
use arti_client::{config::TorClientConfigBuilder, TorClient};
use tor_rtcompat::SpawnBlocking;
use tor_rtcompat::BlockOn;
fn run_arti(to: &str, cache: &str) -> Result<String> {
let runtime = tor_rtcompat::create_runtime()?;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment