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 #4079958 2026-08-09 03:39:54

# rustc version rustc 1.99.0-nightly (771916f90 2026-08-08)

# docs.rs version docsrs 0.0.0 (c0e43eba3fa5e6341d933cf845300a19b1ac3e4e 2026-08-06 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "6b1f4b5610a84e28f3e8a33e1e16022a453c0e6c61a8d4d727db19a8071410ff" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260808-1.99.0-nightly-771916f90\", \"--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: 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.16s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/ruby_inflector/index.html [INFO] running `Command { std: "docker" "inspect" "6b1f4b5610a84e28f3e8a33e1e16022a453c0e6c61a8d4d727db19a8071410ff", kill_on_drop: false }`