genfile_core 0.9.0

File generation tools for code generation and template materialization.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "genfile_core"
version = "0.9.0"
authors = ["Kostiantyn Wandalen <wandalen@obox.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
File generation tools for code generation and template materialization.
"""
homepage = "https://github.com/Wandalen/wTools/tree/master/module/core/genfile_core"
documentation = "https://docs.rs/genfile_core"
readme = "readme.md"
keywords = [
    "fundamental",
    "general-purpose",
    "template",
    "codegen",
]
categories = [
    "development-tools",
    "template-engine",
]
license = "MIT"
repository = "https://github.com/Wandalen/wTools/tree/master/module/core/genfile_core"

[package.metadata.docs.rs]
features = ["full"]
all-features = false

[features]
archive = [
    "renderer",
    "filesystem",
    "dep:serde",
    "error_tools/enabled",
    "collection_tools/enabled",
    "mod_interface/enabled",
]
binary = [
    "archive",
    "dep:base64",
]
default = [
    "archive",
    "template",
    "renderer",
    "filesystem",
    "serialization",
    "binary",
]
external_content = ["archive"]
filesystem = [
    "error_tools/enabled",
    "collection_tools/enabled",
    "mod_interface/enabled",
]
full = [
    "archive",
    "template",
    "renderer",
    "filesystem",
    "serialization",
    "json",
    "yaml",
    "binary",
    "external_content",
    "parameter_discovery",
]
json = [
    "archive",
    "dep:serde",
    "dep:serde_json",
]
parameter_discovery = ["dep:regex"]
renderer = [
    "dep:handlebars",
    "dep:serde_json",
    "error_tools/enabled",
    "collection_tools/enabled",
    "mod_interface/enabled",
]
serialization = [
    "json",
    "yaml",
]
template = [
    "renderer",
    "filesystem",
    "dep:serde",
    "error_tools/enabled",
    "collection_tools/enabled",
    "mod_interface/enabled",
]
yaml = [
    "archive",
    "dep:serde",
    "dep:serde_yaml",
]

[lib]
name = "genfile_core"
path = "src/lib.rs"

[[example]]
name = "archive_with_parameters"
path = "examples/archive_with_parameters.rs"
required-features = [
    "archive",
    "parameter_discovery",
]

[[example]]
name = "basic_template"
path = "examples/basic_template.rs"
required-features = ["archive"]

[[example]]
name = "binary_files"
path = "examples/binary_files.rs"
required-features = [
    "binary",
    "json",
]

[[example]]
name = "custom_storage"
path = "examples/custom_storage.rs"
required-features = ["external_content"]

[[example]]
name = "external_content"
path = "examples/external_content.rs"
required-features = ["external_content"]

[[example]]
name = "low_level_template"
path = "examples/low_level_template.rs"
required-features = ["template"]

[[example]]
name = "serialization"
path = "examples/serialization.rs"
required-features = [
    "json",
    "yaml",
]

[[test]]
name = "security"
path = "tests/security.rs"

[[test]]
name = "smoke_test"
path = "tests/smoke_test.rs"

[[test]]
name = "tests"
path = "tests/tests.rs"

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.collection_tools]
version = "~0.35.0"
default-features = false

[dependencies.error_tools]
version = "~0.37.0"
features = ["error_typed"]
default-features = false

[dependencies.handlebars]
version = "4.5.0"
optional = true

[dependencies.mod_interface]
version = "~0.56.0"
default-features = false

[dependencies.regex]
version = "1.11"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dev-dependencies]

[lints.clippy]
absolute_paths = "allow"
arbitrary_source_item_ordering = "allow"
cast_precision_loss = "allow"
doc_include_without_cfg = "warn"
implicit_return = "allow"
inline_always = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "allow"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
question_mark_used = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "allow"
std_instead_of_core = "warn"
struct_excessive_bools = "allow"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unsafe-code = "deny"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("diagnostics_runtime_assertions", "diagnostics_compiletime_assertions", "diagnostics_memory_layout"))']