[package] name = "sanitise-file-name" description = "An unusually flexible and efficient file name sanitiser" authors = ["Chris Morgan "] license = "BlueOak-1.0.0 OR MIT OR Apache-2.0" version = "1.0.0" edition = "2021" keywords = ["sanitiser", "filename", "sanitizer"] categories = ["filesystem", "text-processing"] repository = "https://gitlab.com/chris-morgan/sanitise-file-name" # The test matrix arrangement produces >800KB of files, uncompressed, # so I’m excluding them from publish; go to the source repo if you want it all. exclude = [".gitignore", "tests/"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"] [features] default = ["std"] std = ["alloc"] alloc = [] const-fn-trait-bound = [] [dev-dependencies] # Only the tests depend on rustc_1_55. tinyvec_string = { version = "0.3", features = ["rustc_1_55"] } [dependencies] # I explicitly exclude this optional ~peer dependency tinyvec_string from the # semver compatibility guarantee. Given the small and obvious API surface used, # I hope subsequent tinyvec_string releases will be compatible, so that I can # just widen the version specifier, but if not, I will consider it acceptable # to break compatibility in a minor (1.x.0) release, until tinyvec_string 1. tinyvec_string = { version = "0.3", optional = true }