Docs.rs
docparser-core-0.1.0
docparser-core 0.1.0
Docs.rs crate page
MIT
OR
Apache-2.0
24 October 2026
Links
Homepage
Repository
crates.io
Source
Owners
hi-agents
Dependencies
serde ^1
normal
serde_json ^1
dev
Versions
32.95%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
sniff
docparser_
core
0.1.0
In docparser_
core::
router
docparser_core
::
router
Function
sniff
Copy item path
Source
pub fn sniff(path: &
str
) ->
Result
<&'static
str
>
Expand description
语义(继承 KB 现网经验):
OOXML 若文件头是 OLE 容器 → 加密件,归 encrypted;
legacy(doc/ppt/xls)期望 OLE,不是 OLE → unsupported(伪装);
其余按头/magic 兜底。