rtf-parser 0.4.2

A Rust RTF parser & lexer library designed for speed and memory efficiency.
Documentation
Build #1955549 2025-04-05 14:51:43
# rustc version
rustc 1.88.0-nightly (17ffbc81a 2025-04-04)# docs.rs version
docsrs 0.6.0 (ee9a3fe6 2025-03-28)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/rtf-parser-0.4.2/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/rtf-parser-0.4.2/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250404-1.88.0-nightly-17ffbc81a\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 00aa5beaf404619a66f26bea68b94f87acc0d971a7e0cd7ad29604d2b1781d4f
[INFO] running `Command { std: "docker" "start" "-a" "00aa5beaf404619a66f26bea68b94f87acc0d971a7e0cd7ad29604d2b1781d4f", kill_on_drop: false }`
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/document.rs:13:1
[INFO] [stderr]    |
[INFO] [stderr] 13 | #[wasm_bindgen]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: expected names are: `docsrs`, `feature`, and `test` and 31 more
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/document.rs:19:1
[INFO] [stderr]    |
[INFO] [stderr] 19 | #[wasm_bindgen(getter_with_clone)]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/header.rs:36:68
[INFO] [stderr]    |
[INFO] [stderr] 36 | #[derive(Default, Debug, Clone, PartialEq, Deserialize, Serialize, Tsify)]
[INFO] [stderr]    |                                                                    ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/header.rs:46:1
[INFO] [stderr]    |
[INFO] [stderr] 46 | #[wasm_bindgen(getter_with_clone)]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/header.rs:54:1
[INFO] [stderr]    |
[INFO] [stderr] 54 | #[wasm_bindgen]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/header.rs:62:74
[INFO] [stderr]    |
[INFO] [stderr] 62 | #[derive(Debug, PartialEq, Default, Clone, Hash, Deserialize, Serialize, Tsify)]
[INFO] [stderr]    |                                                                          ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/header.rs:84:74
[INFO] [stderr]    |
[INFO] [stderr] 84 | #[derive(Debug, PartialEq, Hash, Clone, Default, Deserialize, Serialize, Tsify)]
[INFO] [stderr]    |                                                                          ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]  --> src/paragraph.rs:9:1
[INFO] [stderr]   |
[INFO] [stderr] 9 | #[wasm_bindgen]
[INFO] [stderr]   | ^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]   = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]   = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]   = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]   = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/paragraph.rs:18:80
[INFO] [stderr]    |
[INFO] [stderr] 18 | #[derive(Debug, Default, Clone, Copy, PartialEq, Hash, Deserialize, Serialize, Tsify)]
[INFO] [stderr]    |                                                                                ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/paragraph.rs:42:1
[INFO] [stderr]    |
[INFO] [stderr] 42 | #[wasm_bindgen]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/paragraph.rs:50:80
[INFO] [stderr]    |
[INFO] [stderr] 50 | #[derive(Default, Debug, Clone, Copy, PartialEq, Hash, Deserialize, Serialize, Tsify)]
[INFO] [stderr]    |                                                                                ^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/paragraph.rs:75:1
[INFO] [stderr]    |
[INFO] [stderr] 75 | #[wasm_bindgen]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/parser.rs:23:1
[INFO] [stderr]    |
[INFO] [stderr] 23 | #[wasm_bindgen(getter_with_clone)]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition name: `wasm_bindgen_unstable_test_coverage`
[INFO] [stderr]   --> src/parser.rs:31:1
[INFO] [stderr]    |
[INFO] [stderr] 31 | #[wasm_bindgen]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate
[INFO] [stderr]    = help: try referring to `wasm_bindgen` crate for guidance on how handle this unexpected cfg
[INFO] [stderr]    = help: the attribute macro `wasm_bindgen` may come from an old version of the `wasm_bindgen_macro` crate, try updating your dependency with `cargo update -p wasm_bindgen_macro`
[INFO] [stderr]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stderr]    = note: this warning originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_next_token` is never used
[INFO] [stderr]    --> src/parser.rs:296:8
[INFO] [stderr]     |
[INFO] [stderr] 118 | impl<'a> Parser<'a> {
[INFO] [stderr]     | ------------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 296 |     fn get_next_token(&'a self) -> Option<&'a Token<'a>> {
[INFO] [stderr]     |        ^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `is_only_whitespace` is never used
[INFO] [stderr]  --> src/utils.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 1 | pub trait StrUtils {
[INFO] [stderr]   |           -------- method in this trait
[INFO] [stderr] ...
[INFO] [stderr] 4 |     fn is_only_whitespace(&self) -> bool;
[INFO] [stderr]   |        ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `rtf-parser` (lib) generated 16 warnings
[INFO] [stderr]     Scraping rtf-parser v0.4.2 (/opt/rustwide/workdir)
[INFO] [stderr] warning: failed to scan example "bench" in package `rtf-parser` for example code usage
[INFO] [stderr]     Try running with `--verbose` to see the error message.
[INFO] [stderr]     If an example should not be scanned, then consider adding `doc-scrape-examples = false` to its `[[example]]` definition in Cargo.toml
[INFO] [stderr] warning: `rtf-parser` (example "bench") generated 1 warning
[INFO] [stderr] warning: failed to scan example "load_file" in package `rtf-parser` for example code usage
[INFO] [stderr]     Try running with `--verbose` to see the error message.
[INFO] [stderr]     If an example should not be scanned, then consider adding `doc-scrape-examples = false` to its `[[example]]` definition in Cargo.toml
[INFO] [stderr] warning: `rtf-parser` (example "load_file") generated 1 warning
[INFO] [stderr]  Documenting rtf-parser v0.4.2 (/opt/rustwide/workdir)
[INFO] [stderr] warning: `rtf-parser` (lib doc) generated 14 warnings (14 duplicates)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.65s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/rtf_parser/index.html
[INFO] running `Command { std: "docker" "inspect" "00aa5beaf404619a66f26bea68b94f87acc0d971a7e0cd7ad29604d2b1781d4f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "00aa5beaf404619a66f26bea68b94f87acc0d971a7e0cd7ad29604d2b1781d4f", kill_on_drop: false }`
[INFO] [stdout] 00aa5beaf404619a66f26bea68b94f87acc0d971a7e0cd7ad29604d2b1781d4f