graphrt-code 0.2.1

Sandboxed code node (embedded JavaScript, optional remote sandbox) for the graphrt workflow runtime.
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 = "2024"
rust-version = "1.85"
name = "graphrt-code"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sandboxed code node (embedded JavaScript, optional remote sandbox) for the graphrt workflow runtime."
homepage = "https://github.com/BimaPangestu28/graphrt"
documentation = "https://docs.rs/graphrt-code"
readme = "README.md"
keywords = [
    "sandbox",
    "javascript",
    "quickjs",
    "workflow",
    "agent",
]
categories = [
    "development-tools",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/BimaPangestu28/graphrt"

[features]
default = [
    "js",
    "tokio",
]
js = ["dep:rquickjs"]
python = [
    "dep:tokio",
    "tokio/process",
    "tokio/io-util",
    "tokio/time",
    "tokio/rt",
]
remote = [
    "dep:graphrt-http",
    "dep:reqwest",
]
tokio = [
    "dep:tokio",
    "tokio/rt",
]

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

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

[dependencies.futures]
version = "0.3"
features = [
    "std",
    "async-await",
]
default-features = false

[dependencies.graphrt-core]
version = "0.2.1"
default-features = false

[dependencies.graphrt-http]
version = "0.2.1"
optional = true
default-features = false

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.rquickjs]
version = "0.14"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.tokio]
version = "1"
optional = true
default-features = false

[dev-dependencies.futures]
version = "0.3"
features = [
    "std",
    "async-await",
    "executor",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "time",
]
default-features = false

[lints.clippy]
dbg_macro = "deny"
expect_used = "deny"
indexing_slicing = "warn"
panic = "deny"
print_stdout = "warn"
todo = "deny"
unimplemented = "deny"
unwrap_used = "deny"

[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "forbid"

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