[dependencies.proc-macro2]
version = "1.0"
[dependencies.quote]
version = "1.0"
[dependencies.swc_common]
features = ["sourcemap"]
version = "18"
[dependencies.swc_ecma_ast]
version = "19"
[dependencies.swc_ecma_parser]
version = "31"
[dependencies.syn]
features = ["full", "parsing", "extra-traits"]
version = "2.0"
[dependencies.viewpoint-js-core]
version = "0.2.2"
[dev-dependencies.trybuild]
version = "1.0"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[features]
default = []
json = ["viewpoint-js-core/json"]
[lib]
name = "viewpoint_js"
path = "src/lib.rs"
proc-macro = true
[lints.clippy]
assigning_clones = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
format_push_string = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unused_async = "allow"
unused_self = "allow"
wildcard_in_or_patterns = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
dead_code = "allow"
unsafe_code = "forbid"
[package]
authors = ["Stephen Stubbs"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["development-tools::testing", "web-programming"]
description = "Compile-time validated JavaScript macro for Viewpoint"
documentation = "https://docs.rs/viewpoint-js"
edition = "2024"
homepage = "https://github.com/stephenstubbs/viewpoint"
keywords = ["browser", "automation", "testing", "playwright", "chromium"]
license = "MIT"
name = "viewpoint-js"
readme = "README.md"
repository = "https://github.com/stephenstubbs/viewpoint"
resolver = "2"
rust-version = "1.85"
version = "0.2.2"
[[test]]
name = "compile_fail_tests"
path = "tests/compile_fail_tests.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"