ruby_inflector 0.0.10

Adds String based inflections for Rust. Snake, kebab, camel, sentence, class, title and table cases as well as ordinalize, deordinalize, demodulize, foreign key, and pluralize/singularize are supported as both traits and pure functions acting on String types. Intended to emulate the behavior of ActiveSupport::Inflector in Ruby as closely as possible. https://api.rubyonrails.org/classes/ActiveSupport/Inflector.html
Documentation
Build #1659816 2025-01-23 06:00:51
# rustc version
rustc 1.86.0-nightly (649b995a9 2025-01-22)# docs.rs version
docsrs 0.6.0 (29a0e81b 2025-01-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/ruby_inflector-0.0.10/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/ruby_inflector-0.0.10/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:c80049f3b88b82089a44e0f06d0d6029d44b96b7257e55a1cd63dbc9f4c33334" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250122-1.86.0-nightly-649b995a9\", \"--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] [stdout] 225532fea9f33cf35918e2441af37a6346f2c4ab60d27ccbb8f2e2f7bf84e850
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "225532fea9f33cf35918e2441af37a6346f2c4ab60d27ccbb8f2e2f7bf84e850", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting ruby_inflector v0.0.10 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]  --> src/lib.rs:8:13
[INFO] [stderr]   |
[INFO] [stderr] 8 | #![cfg_attr(feature = "unstable", feature(test))]
[INFO] [stderr]   |             ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]   |
[INFO] [stderr]   = note: no expected values for `feature`
[INFO] [stderr]   = help: consider adding `unstable` as a feature in `Cargo.toml`
[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: the lint level is defined here
[INFO] [stderr]  --> src/lib.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 |     warnings,
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr]   = note: `#[warn(unexpected_cfgs)]` implied by `#[warn(warnings)]`
[INFO] [stderr] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]    --> src/lib.rs:136:11
[INFO] [stderr]     |
[INFO] [stderr] 136 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]     |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]     |
[INFO] [stderr]     = note: no expected values for `feature`
[INFO] [stderr]     = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/camel.rs:51:11
[INFO] [stderr]    |
[INFO] [stderr] 51 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/snake.rs:41:11
[INFO] [stderr]    |
[INFO] [stderr] 41 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/screaming_snake.rs:38:11
[INFO] [stderr]    |
[INFO] [stderr] 38 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/kebab.rs:36:11
[INFO] [stderr]    |
[INFO] [stderr] 36 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/train.rs:44:11
[INFO] [stderr]    |
[INFO] [stderr] 44 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/sentence.rs:45:11
[INFO] [stderr]    |
[INFO] [stderr] 45 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/title.rs:44:11
[INFO] [stderr]    |
[INFO] [stderr] 44 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/table.rs:41:11
[INFO] [stderr]    |
[INFO] [stderr] 41 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: unexpected `cfg` condition value: `unstable`
[INFO] [stderr]   --> src/case/pascal.rs:49:11
[INFO] [stderr]    |
[INFO] [stderr] 49 | #[cfg(all(feature = "unstable", test))]
[INFO] [stderr]    |           ^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stderr]    |
[INFO] [stderr]    = note: no expected values for `feature`
[INFO] [stderr]    = help: consider adding `unstable` as a feature in `Cargo.toml`
[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] 
[INFO] [stderr] warning: Rust code block is empty
[INFO] [stderr]   --> src/lib.rs:14:5
[INFO] [stderr]    |
[INFO] [stderr] 14 | //! ```
[INFO] [stderr]    |     ^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` implied by `#[warn(warnings)]`
[INFO] [stderr] help: mark blocks that do not contain Rust code as text
[INFO] [stderr]    |
[INFO] [stderr] 14 | //! ```text
[INFO] [stderr]    |        ++++
[INFO] [stderr] 
[INFO] [stderr] warning: `ruby_inflector` (lib doc) generated 12 warnings (run `cargo fix --lib -p ruby_inflector` to apply 1 suggestion)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.39s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/ruby_inflector/index.html
[INFO] running `Command { std: "docker" "inspect" "225532fea9f33cf35918e2441af37a6346f2c4ab60d27ccbb8f2e2f7bf84e850", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "225532fea9f33cf35918e2441af37a6346f2c4ab60d27ccbb8f2e2f7bf84e850", kill_on_drop: false }`
[INFO] [stdout] 225532fea9f33cf35918e2441af37a6346f2c4ab60d27ccbb8f2e2f7bf84e850