Drop unused Phase-1 scaffolding: page, metainfo, service
These three modules were ported from NewPipeExtractor in Phase 1 as
part of the spine. Nothing in the YT extractor (channel/search/stream/
playlist/linkhandler) imports them, and the strawcore wrapper crate
that consumes us doesn't re-export them either. Per the round-2
audit's cruft inventory, this is ~195 LOC of dead surface shipping
to every Android APK.
* page.rs — Page continuation carrier; continuation tokens flow
through the codebase as plain Strings.
* metainfo.rs — NPE MetaInfo info-card struct; no extractor
populates it.
* service.rs — StreamingService trait + ServiceInfo + LinkType;
zero impls exist anywhere.
Wrapper does not need to change — none of the pub use re-exports
crossed the crate boundary.
This commit is contained in:
parent
cf4a4ba883
commit
8e900f9b55
4 changed files with 3 additions and 205 deletions
13
src/lib.rs
13
src/lib.rs
|
|
@ -1,18 +1,14 @@
|
|||
// Rust port of NewPipeExtractor (YT-only).
|
||||
//
|
||||
// Phase 1 lays the dependency-free spine that everything else builds on:
|
||||
// errors, localization, the Downloader contract, value types, the
|
||||
// StreamingService trait, and the NewPipe singleton. None of this module
|
||||
// tree knows anything about YouTube yet — that lands in Phase 3+.
|
||||
// The spine ports the core NPE contract — errors, localization, the
|
||||
// Downloader trait, value types, the NewPipe singleton — and then the
|
||||
// YT-specific extractors live under `youtube/`.
|
||||
|
||||
pub mod downloader;
|
||||
pub mod exceptions;
|
||||
pub mod image;
|
||||
pub mod localization;
|
||||
pub mod metainfo;
|
||||
pub mod newpipe;
|
||||
pub mod page;
|
||||
pub mod service;
|
||||
pub mod stream;
|
||||
pub mod youtube;
|
||||
|
||||
|
|
@ -20,7 +16,4 @@ pub use downloader::{Downloader, Request, Response};
|
|||
pub use exceptions::{ExtractionError, NetworkError, ParsingError};
|
||||
pub use image::{Image, ImageSet, ResolutionLevel};
|
||||
pub use localization::{ContentCountry, Localization};
|
||||
pub use metainfo::MetaInfo;
|
||||
pub use newpipe::NewPipe;
|
||||
pub use page::Page;
|
||||
pub use service::{LinkType, ServiceInfo, StreamingService};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue