[workspace] members = [ "astronomy/src/main/rust", "photos/src/main/rust", "office/src/main/rust", "weather/src/main/rust", "pdf/src/main/rust", "camera/src/main/rust", "maps/src/main/rust", "networklocation/src/main/rust", "euicc/src/main/rust", "passwords/src/main/rust", "appstore/src/main/rust", "vpn/src/main/rust", "library/e2ee-p2p/src/main/rust", "library/e2ee-openpgp/src/main/rust", "library/jni-http/src/main/rust", "library/jni-bridge/src/main/rust", "library/map/src/main/rust", "library/ml/src/main/rust", "library/vision/src/main/rust", "measure/src/main/rust", "communicate-dev/src/main/rust", "communicate-dev/src/main/rust-mls", "youpipe/src/main/rust", "web/src/main/rust", "share/src/main/rust", "games/voxels/src/main/rust", "games/kart/src/main/rust", "library/avatar/src/main/rust", "code/src/main/rust", "library/tilecodec/src/main/rust", "scripts/maps/dem_ingest", "scripts/maps/gtfs_ingest", "scripts/maps/mamaps_build", "scripts/maps/osm_ingest", "scripts/maps/tile_build", "scripts/maps/wikidesc", "scripts/networklocation/geodb_build", "scripts/networklocation/wps_harvest", "third_party/betocore/ldt/fuzz", "third_party/betocore/ldt_np_adv/fuzz", "third_party/betocore/np_adv/fuzz", "third_party/betocore/ukey2_connections/fuzz", "third_party/betocore/xts_aes/fuzz", "third_party/om-file-format-sys", "third_party/betocore/array_view", "third_party/betocore/array_ref", "third_party/betocore/sink", "third_party/betocore/ldt_tbc", "third_party/betocore/xts_aes", "third_party/betocore/ldt", "third_party/betocore/np_hkdf", "third_party/betocore/ldt_np_adv", "third_party/betocore/np_adv", "third_party/betocore/rand_ext", "third_party/betocore/test_helper", "third_party/betocore/test_vector_hkdf", "third_party/betocore/crypto_provider", "third_party/betocore/crypto_provider_rustcrypto", "third_party/betocore/crypto_provider_default", "third_party/betocore/ukey2_rs", "third_party/betocore/ukey2_proto", "third_party/betocore/ukey2_connections", ] # `tilecodec` is a workspace root of its own, because it is consumed both by this # workspace's `map_renderer` cdylib and by the detached host tool # `scripts/maps/tile_build`. It lives inside this tree, so it has to be excluded # explicitly or cargo reports "multiple workspace roots found in the same workspace" # as soon as a member depends on it. # `personal/uniflix_strem` is likewise a workspace root of its own (see its # Cargo.toml), for a different reason: it lives under gitignored personal/ and # may not exist in a given checkout, and cargo has no conditional members — a # missing member fails resolution of the whole workspace. Excluded entries may # match nothing, so this keeps the root workspace resolvable with and without # personal/ present. exclude = ["library/tilecodec/src/main/rust", "personal/uniflix_strem/src/main/rust"] resolver = "2" [workspace.package] version = "0.1.0" edition = "2021" publish = false license = "Apache-2.0" [workspace.lints.rust] missing_docs = "deny" trivial_casts = "deny" trivial_numeric_casts = "deny" unsafe_code = "deny" unsafe_op_in_unsafe_fn = "deny" unused_extern_crates = "deny" unused_import_braces = "deny" unused_results = "deny" unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)', 'cfg(rust_analyzer)', 'cfg(blaze)'] } # Lint sweep (warn-then-error): rustdoc link/tag hygiene lands as warnings # first, promotes to deny with the rest of the comment sweep at promotion. # (Table is `workspace.lints.rustdoc`, not dotted keys under `rust` — cargo # rejects `lints.rust.rustdoc::X` as an invalid lint name.) [workspace.lints.rustdoc] broken_intra_doc_links = "warn" invalid_html_tags = "warn" [workspace.lints.clippy] expect_used = "deny" indexing_slicing = "deny" panic = "deny" unwrap_used = "deny" # Lint sweep (warn-then-error): catches TODO!/unimplemented!/dbg! left in the # tree plus doc-comment drift; promotes to deny at promotion. todo = "warn" dbg_macro = "warn" empty_line_after_doc_comments = "warn" doc_markdown = "warn" # Lint sweep: conservative warn set. missing_panics_doc keeps `# Panics` # sections honest on public fns; needless_borrow and len_without_is_empty are # mechanical. All promote to deny at promotion once the inheriting slices are # green. Existing deny set above is unchanged. missing_panics_doc = "warn" needless_borrow = "warn" len_without_is_empty = "warn" # Centralized Rust versions – armv8-only (aarch64-linux-android) [workspace.dependencies] # Upstream jni from crates.io, not a vendored fork. # # 0.22 API: native methods now receive `EnvUnowned` and must adapt it via # `with_env` plus an `ErrorPolicy`; `GlobalRef`/`AutoLocal` renamed. All 31 # native entry points migrated in this bump. jni = "0.22.4" jni-sys = "0.3.1" cesu8 = "1.1.0" thiserror = { version = "2" } log = "0.4.34" cfg-if = "1.0.5" serde = { version = "1.0.229", features = ["derive"] } serde_core = "1.0.229" proc-macro2 = "1.0.92" quote = "1.0.40" syn = "2.0.101" itoa = "1.0.15" memchr = "2.8.3" # XML pull parsing for the OOXML/ODF importers. Only transitive dep is memchr, pinned above. quick-xml = { version = "0.42", default-features = false } serde_json = "1.0.154" # Brave Shields engine (:web). default-features off drops `single-thread` so `Engine` is # Send + Sync, which the WebView render thread requires. adblock = { version = "0.13.3", default-features = false, features = ["embedded-domain-resolver", "full-regex-handling"] } # Imaging – image crate 0.25->moxcms/pxfm removed, use tiny jpeg-encoder/decoder (1 function per your rule) jpeg-decoder = { version = "0.3.2", default-features = false } jpeg-encoder = { version = "0.7.1", default-features = false } # AVIF still encoding (camera): ravif is the pure-Rust AV1/AVIF encoder (rav1e # under it). default-features off drops `asm` (needs nasm on x86 hosts and # prebuilt asm objects on device) and keeps `threading` (rayon, already in the # workspace). No C toolchain, no bindgen: libavif-sys/libaom rejected for that # reason. Offline at runtime, so no SUPPLY_CHAIN_RISKS.md fetch entry. ravif = { version = "0.13", default-features = false, features = ["threading"] } flate2 = "1.1.10" # Crypto / PQC (features preserved – no feature loss) sha2 = { version = "0.11.1", features = ["oid"] } # SHAKE256 for FindFamily link-seed expansion. Already in the lock file transitively # via fips203/fips204, so this only promotes it to a direct dependency. sha3 = "0.12" shake = "0.1" aes = "0.9.3" # `aes09` kept for the keepass dual-stack rationale: keepass 0.15.x needs aes # 0.9.x (cipher 0.5 stack). Now redundant with the default `aes` 0.9.3 pin but # retained so `aes09.workspace` edges in passwords keep resolving. aes09 = { package = "aes", version = "=0.9.3" } md-5 = "0.11.0" # keepass 0.15.x (cipher 0.5 / cbc 0.2 / aes 0.9 stack, matching the workspace # default aes 0.9.3 pin). Only passwords uses keepass. keepass = { version = "=0.15.2", default-features = false, features = ["save_kdbx4"] } # Classic Signal protocol (WhatsApp bridge) – X25519/XEdDSA + AES-CBC + HMAC. curve25519-dalek = { version = "5.0.0", default-features = false, features = ["alloc", "precomputed-tables", "zeroize"] } # MLS (RFC 9420) for the RCS line — OpenMLS + RustCrypto provider + memory storage. openmls = { version = "0.9.1", default-features = false } openmls_rust_crypto = "0.6.0" openmls_memory_storage = "0.6.0" openmls_basic_credential = "0.6.0" openmls_traits = "0.6.0" tls_codec = "0.5.0" x25519-dalek = { version = "3.0.0", default-features = false, features = ["static_secrets"] } hmac = "0.13.0" subtle = "2.6.1" fips203 = "0.4.3" fips204 = "0.4.6" # OpenPGP (RFC 9580) for SecureMail via :library:e2ee-p2p — replaces BouncyCastle. # rPGP: pure-Rust packet armor/keyring/encrypt/decrypt. BouncyCastle stays removed. pgp = { version = "0.21.0" } rand_core = { version = "0.10.1" } rand = { version = "0.10.3", default-features = true } # rand 0.8 for rPGP (`pgp` 0.21 uses rand 0.8 / rand_core 0.6; workspace default # is rand 0.10). Same alias pattern as `aes09` for keepass. rand08 = { package = "rand", version = "=0.8.6" } getrandom = "0.4.3" # x509-cert / cms / spki / rsa removed with the PDF signature-creation feature. der = { version = "0.8.2", features = ["alloc", "oid"] } const-oid = { version = "0.9.6", features = ["db"] } ttf-parser = { version = "0.25.1", default-features = false, features = ["std", "glyph-names"] } # weezl, cbc removed – std LZW + own CBC in pdf_cbc.rs (single function, prefer stdlib) fax = "0.3.0" hayro = "0.8.0" hayro-jbig2 = { version = "0.3.0", default-features = false, features = ["std"] } openjp2 = "0.6.1" lopdf = { version = "0.45", default-features = false, features = ["serde"] } libc = "0.2.190" indexmap = { version = "2.14.2" } hashbrown = "0.14.5" byteorder = "1.5.0" smallvec = "1.14.0" # No HTTP client crate anywhere: Rust reaches the network through library:network via # the flat-framed JNI bridge in library/jni-http, so no .so links its own TLS. # omfiles / memmap2 / ndarray removed – weather uses its own sync src/om.rs on top of # the vendored om-file-format-sys C lib (see weather/src/main/rust/Cargo.toml). # Build. `cc = "1"` (not 1.8): tree-sitter-javascript's build-dep requires # `cc ~1.0.90` (<1.1.0), so the single workspace lockfile resolves cc to the # newest 1.0.x for everyone including om-file-format-sys. cc = { version = "1" } # Minimal platform chrono = { version = "0.4.39", default-features = false, features = ["clock", "std"] } iana-time-zone = "0.1.64" crossbeam-utils = "0.8.21" crossbeam-epoch = "0.9.18" crossbeam-deque = "0.8.6" either = "1.19.0" rayon = "1.11.0" rayon-core = "1.13.0" # nalgebra removed – camera now uses its own src/linalg.rs (see camera Cargo.toml) # --- BetoCore vendored crates (third_party/betocore) — Apache-2.0 --- # Local path crates (so `xxx.workspace = true` in vendored Cargo.tomls resolves) tilecodec = { path = "library/tilecodec/src/main/rust" } array_view = { path = "third_party/betocore/array_view" } array_ref = { path = "third_party/betocore/array_ref" } sink = { path = "third_party/betocore/sink" } ldt_tbc = { path = "third_party/betocore/ldt_tbc" } xts_aes = { path = "third_party/betocore/xts_aes" } ldt = { path = "third_party/betocore/ldt" } np_hkdf = { path = "third_party/betocore/np_hkdf" } ldt_np_adv = { path = "third_party/betocore/ldt_np_adv" } np_adv = { path = "third_party/betocore/np_adv" } rand_ext = { path = "third_party/betocore/rand_ext" } test_helper = { path = "third_party/betocore/test_helper" } test_vector_hkdf = { path = "third_party/betocore/test_vector_hkdf" } crypto_provider = { path = "third_party/betocore/crypto_provider", default-features = false } crypto_provider_default = { path = "third_party/betocore/crypto_provider_default", default-features = false } crypto_provider_rustcrypto = { path = "third_party/betocore/crypto_provider_rustcrypto" } ukey2_rs = { path = "third_party/betocore/ukey2_rs" } ukey2_proto = { path = "third_party/betocore/ukey2_proto" } ukey2_connections = { path = "third_party/betocore/ukey2_connections" } # crates.io deps required by vendored betocore crates (pins from nearby/Cargo.toml) tinyvec = { version = "1.13.3", features = ["rustc_1_55"] } nom = { version = "8.0.0", default-features = false } strum = { version = "0.28.0", default-features = false } strum_macros = { version = "0.28.0", default-features = false } lazy_static = { version = "1.5.1", features = ["spin_no_std"] } itertools = { version = "0.15.0", default-features = false, features = ["use_alloc"] } hex = "0.4.3" rand_pcg = "0.10.2" base64 = "0.23.1" ctr = "0.10.1" cbc = { version = "0.2.1", features = ["block-padding"] } hkdf = "0.13.0" aes-gcm = { version = "0.11.1", default-features = false, features = ["aes", "alloc"] } aes-gcm-siv = { version = "0.12.1", features = ["aes"], default-features = false } aead = "0.6.1" cipher = "0.5" chacha20poly1305 = "0.11.0" protobuf = "=3.7.2" protobuf-codegen = "=3.7.2" sec1 = "0.8.1" ed25519-dalek = { version = "3.0.0", default-features = false, features = ["rand_core"] } ed25519 = "2.2.3" p256 = { version = "0.14.0", default-features = false } rand_chacha = { version = "0.10.0", default-features = false } xts-mode = "0.6.0" wycheproof = "0.7.0" blake2 = "0.11.0" hdrhistogram = "7.6.0" regex = "1.13.1" criterion = { version = "0.8.2", features = ["html_reports"] } clap = { version = "4.6.7", features = ["derive"] } anyhow = "1.0.104" num-bigint = "0.5.1" bytes = "1.12.1" hex-literal = "1.1.0" prost = "0.14" parking_lot = "0.12.5" zerocopy = { version = "0.8.63", features = ["derive", "std"] } constant_time_eq = "0.6.1" typed-builder = "0.23.2" bitfield-struct = "0.13.0" duplicate = "2.0.1" eyre = "0.6.14" tracing = { version = "0.1.44", default-features = false, features = ["std"] } ruzstd = "0.9" diff = "0.1.13" ab_glyph = "0.2.32" png = "0.18" memmap2 = "0.9" ash = { version = "0.38", default-features = false, features = ["loaded"] } glam = { version = "0.27", features = ["serde"] } miniz_oxide = "0.8" tiff = "0.9" mimalloc = { version = "0.1", default-features = false } zstd = "0.13" zstd-rs = "0.1" ureq = { version = "3", default-features = false, features = ["rustls"] } tree-sitter = "0.22" tree-sitter-kotlin = "0.3" tree-sitter-java = "0.21" tree-sitter-javascript = "0.21" tree-sitter-typescript = "0.21" tree-sitter-python = "0.21" tree-sitter-rust = "0.21" tree-sitter-go = "0.21" tree-sitter-json = "0.21" tree-sitter-c = "0.21" tree-sitter-cpp = "0.22" arbitrary = { version = "1.3.2", features = ["derive"] } derive_fuzztest = "0.1.4" libfuzzer-sys = "0.4.7" # keep existing pins for sha2/aes/hmac/subtle/x25519-dalek/rand etc — betocore uses compatible versions [profile.release] opt-level = 3 lto = true codegen-units = 1 strip = true panic = "abort" # Fast profile for dev/agent builds: skips fat LTO for quicker iteration. [profile.fast] inherits = "release" opt-level = 2 lto = false codegen-units = 16