Drop cdylib + staticlib from strawcore-core crate-type

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.
This commit is contained in:
Kayos 2026-05-24 17:40:37 -07:00
parent 56089ffa3e
commit aa07984631

View file

@ -8,7 +8,11 @@ repository = "http://192.168.0.5:3001/Sulkta-Coop/strawcore"
description = "Rust port of NewPipeExtractor (YT-only). Plugs into Straw via UniFFI."
[lib]
crate-type = ["rlib", "cdylib", "staticlib"]
# 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"] }