browser_log 0.4.0

Advanced logging and panic handling for WebAssembly applications with browser console integration
[dependencies.log]
features = ["std"]
optional = true
version = "0.4.27"

[dependencies.mod_interface]
optional = true
version = "~0.34.0"

[dependencies.wasm-bindgen]
optional = true
version = "0.2.100"

[dependencies.web-sys]
features = ["console"]
optional = true
version = "0.3.77"

[dev-dependencies.test_tools]
version = "~0.16.0"

[features]
default = ["enabled"]
enabled = ["dep:wasm-bindgen", "dep:web-sys", "dep:log", "dep:mod_interface"]
full = ["default"]

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

[lints.clippy]
absolute_paths = "allow"
allow_attributes = "allow"
allow_attributes_without_reason = "allow"
arbitrary_source_item_ordering = "allow"
else_if_without_else = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
implicit_return = "warn"
inline_always = "allow"
many_single_char_names = "allow"
min_ident_chars = "warn"
missing_docs_in_private_items = "allow"
missing_inline_in_public_items = "warn"
mod_module_files = "allow"
module_name_repetitions = "allow"
pub_use = "allow"
self_named_module_files = "allow"
single_call_fn = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
undocumented_unsafe_blocks = "deny"
wildcard_imports = "warn"

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

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

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

[package]
authors = ["Kostiantyn Mysnyk <wandalen@obox.systems>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["web-programming", "development-tools", "wasm"]
description = "Advanced logging and panic handling for WebAssembly applications with browser console integration"
documentation = "https://docs.rs/browser_log"
edition = "2021"
homepage = "https://github.com/Wandalen/cgtools/tree/master/module/helper/browser_log"
include = ["src/**/*", "tests/**/*", "Cargo.toml", "readme.md", "license*", "changelog*"]
keywords = ["wasm", "logging", "browser", "webassembly", "console"]
license = "MIT"
name = "browser_log"
readme = "readme.md"
repository = "https://github.com/Wandalen/cgtools"
rust-version = "1.75.0"
version = "0.4.0"

[package.metadata.docs.rs]
all-features = true
default-target = "wasm32-unknown-unknown"
rustdoc-args = ["--cfg", "docsrs"]
targets = ["wasm32-unknown-unknown", "x86_64-unknown-linux-gnu", "x86_64-pc-windows-msvc", "x86_64-apple-darwin"]

[[package.metadata.release.pre-release-replacements]]
file = "readme.md"
replace = 'browser_log = "{{version}}"'
search = 'browser_log = "[0-9.]+"'

[[package.metadata.release.pre-release-replacements]]
file = "changelog.md"
replace = """
## Unreleased

## {{version}} - {{date}}"""
search = "## Unreleased"

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