mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-30 06:47:33 +00:00
Built-in Tor now runs Arti 2.7.0 (Tor in Rust) in-process through a small JNI wrapper (tools/arti, adapted from Amethyst's tools/arti-build) instead of the kmp-tor C tor daemon. TorManager keeps its public API, status flow, notification and restart behaviour on both platforms. - Prebuilt libraries are committed: Android (src/tor/jniLibs, all four ABIs, shared by the free and benchmark flavors) and desktop (appResources for Linux x64/arm64, Windows x64, macOS x64/arm64, shipped as Compose app resources). tools/arti/build.sh rebuilds them reproducibly. - Patch saturating-time 0.5.0 (used by tor-netdoc): its find_limit loops forever on Windows, where SystemTime has 100ns resolution, hanging the bootstrap at 15%. - Log callbacks attach native threads scoped, so they don't keep the desktop JVM alive on quit. - Reproducibility: pin the NDK AGP strips native libraries with, install it in the verification Dockerfile, and ship libamber_arti.so unstripped so the APK copy is byte-identical to the committed file.
21 lines
626 B
TOML
21 lines
626 B
TOML
[package]
|
|
name = "saturating-time"
|
|
version = "0.5.0"
|
|
authors = ["The Tor Project, Inc.", "Clara Engler <cve@torproject.org>"]
|
|
edition = "2024"
|
|
rust-version = "1.92"
|
|
description = "A trait for limits and saturations on types inside std::time"
|
|
repository = "https://gitlab.torproject.org/tpo/core/arti.git"
|
|
license = "MIT OR Apache-2.0"
|
|
keywords = ["time", "system-time", "instant", "saturating"]
|
|
categories = ["date-and-time", "os", "rust-patterns"]
|
|
|
|
[dependencies]
|
|
web-time-compat = { version = "0.3.0", path = "../web-time-compat" }
|
|
|
|
[features]
|
|
full = ["web-time-compat/full"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|