Caught during the cargo-ndk cross-compile — strawcore-core was emitting its own libstrawcore_core.so (~306 KB per ABI) into Straw's jniLibs. That .so is never loaded by Android; the wrapper crate's libstrawcore.so is the only entry point. rlib only is what consumer crates need.
47 lines
1.3 KiB
TOML
47 lines
1.3 KiB
TOML
[package]
|
|
name = "strawcore-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "GPL-3.0-or-later"
|
|
authors = ["Sulkta-Coop"]
|
|
repository = "http://192.168.0.5:3001/Sulkta-Coop/strawcore"
|
|
description = "Rust port of NewPipeExtractor (YT-only). Plugs into Straw via UniFFI."
|
|
|
|
[lib]
|
|
# rlib only — strawcore-core is consumed as a Rust library, NOT loaded
|
|
# directly by Android. The Straw wrapper crate is the cdylib + the
|
|
# .so Android calls System.loadLibrary("strawcore") for. Emitting a
|
|
# cdylib here too just bloats jniLibs by ~300 KB per ABI.
|
|
crate-type = ["rlib"]
|
|
|
|
[dependencies]
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-webpki-roots", "blocking", "gzip"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "1"
|
|
parking_lot = "0.12"
|
|
url = "2"
|
|
once_cell = "1"
|
|
regex = "1"
|
|
rquickjs = { version = "0.11", default-features = false }
|
|
ress = "0.12.0-alpha.1"
|
|
|
|
[dev-dependencies]
|
|
serde_json = "1"
|
|
|
|
[features]
|
|
default = []
|
|
# `online-tests` gates network-dependent integration tests. Enable with
|
|
# `cargo test --features online-tests` once an internet route is available.
|
|
online-tests = []
|
|
|
|
[profile.release]
|
|
strip = true
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
opt-level = "z"
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
debug = 1
|