weblog/Cargo.toml

27 lines
913 B
TOML
Raw Normal View History

[package]
name = "weblog"
2020-09-16 08:40:20 +00:00
version = "0.2.0"
authors = ["Rob Watson <rfwatson@users.noreply.github.com>"]
edition = "2018"
description = "weblog is a crate that defines a set of macros for calling `console.log()` and other members of the browser's console API when targeting Wasm."
repository = "https://github.com/rfwatson/weblog"
keywords = ["wasm", "webassembly", "console", "log", "logging"]
license = "MIT OR Apache-2.0"
[lib]
2020-09-16 08:39:55 +00:00
# FIXME: https://github.com/rfwatson/weblog/issues/2
test = false
doctest = true
[features]
default = ["web_sys"]
2020-09-15 14:48:32 +00:00
web_sys = ["js-sys", "paste", "wasm-bindgen", "web-sys"]
std_web = ["stdweb"]
[dependencies]
2020-09-15 14:48:32 +00:00
js-sys = { version = ">= 0.3", optional = true }
paste = { version = "1.0", optional = true }
2020-09-15 14:48:32 +00:00
stdweb = { version = ">= 0.4", optional = true }
wasm-bindgen = { version = ">= 0.2", optional = true }
web-sys = { version = ">= 0.3", optional = true, features = ["console"] }