quickjs-rusty 0.11.0

A rusty QuickJS (QuickJS-NG) Javascript engine wrapper, and more.
Documentation
# 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 = "quickjs-rusty"
version = "0.11.0"
authors = [
    "Christoph Herzog <chris@theduke.at>",
    "Icemic J <bingfeng.web@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A rusty QuickJS (QuickJS-NG) Javascript engine wrapper, and more."
documentation = "https://docs.rs/quickjs-rusty"
readme = "README.md"
keywords = [
    "quickjs",
    "javascript",
    "js",
    "interpreter",
    "runtime",
]
license = "MIT"
repository = "https://github.com/Icemic/quickjs-rusty"

[package.metadata.docs.rs]
features = [
    "chrono",
    "bigint",
]

[features]
bigint = [
    "num-bigint",
    "num-traits",
]
default = [
    "chrono",
    "serde",
    "bigint",
]
serde = [
    "thiserror",
    "dep:serde",
]

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

[[example]]
name = "catch_promise_rejection"
path = "examples/catch_promise_rejection.rs"

[[example]]
name = "custom_callback"
path = "examples/custom_callback.rs"

[[example]]
name = "eval"
path = "examples/eval.rs"

[[example]]
name = "eval_module"
path = "examples/eval_module.rs"

[[example]]
name = "interrupt_handler"
path = "examples/interrupt_handler.rs"

[[example]]
name = "promise"
path = "examples/promise.rs"

[[example]]
name = "serde"
path = "examples/serde.rs"

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.chrono]
version = "0.4.7"
optional = true

[dependencies.libquickjs-ng-sys]
version = "^0.10.0"

[dependencies.log]
version = "0.4"

[dependencies.num-bigint]
version = "0.4.4"
optional = true

[dependencies.num-traits]
version = "0.2.0"
optional = true

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

[dependencies.thiserror]
version = "2"
optional = true

[dev-dependencies.serde_json]
version = "1"