# 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 = "web-rwkv" version = "0.8.20" authors = ["Zhenyuan Zhang "] build = false exclude = [ "assets/", "crates/", "screenshots/", ] autobins = false autoexamples = false autotests = false autobenches = false description = "An implementation of the RWKV language model in pure WebGPU." homepage = "https://github.com/cryscan/web-rwkv" readme = "README.md" keywords = [ "deep-learning", "language", "model", "rwkv", ] categories = [ "science", "text-processing", ] license = "MIT OR Apache-2.0" repository = "https://github.com/cryscan/web-rwkv" [lib] name = "web_rwkv" path = "src/lib.rs" [[example]] name = "batch" path = "examples/batch.rs" required-features = ["vanilla"] [[example]] name = "chat" path = "examples/chat.rs" required-features = ["vanilla"] [[example]] name = "gen" path = "examples/gen.rs" required-features = ["vanilla"] [[example]] name = "inspector" path = "examples/inspector.rs" required-features = ["vanilla"] [[example]] name = "rt-batch" path = "examples/rt-batch.rs" required-features = ["runtime"] [[example]] name = "rt-chat" path = "examples/rt-chat.rs" required-features = ["runtime"] [[example]] name = "rt-gen" path = "examples/rt-gen.rs" required-features = ["runtime"] [[example]] name = "serialization" path = "examples/serialization.rs" required-features = ["vanilla"] [dependencies.ahash] version = "0.8" [dependencies.anyhow] version = "1.0" [dependencies.bytemuck] version = "1.19" features = ["extern_crate_alloc"] [dependencies.derive-getters] version = "0.5" [dependencies.document-features] version = "0.2.8" [dependencies.flume] version = "0.11.0" [dependencies.futures] version = "0.3" [dependencies.gpp] version = "0.6.2" [dependencies.half] version = "2.2" features = [ "bytemuck", "serde", ] [dependencies.instant] version = "0.1" features = [ "inaccurate", "wasm-bindgen", ] [dependencies.itertools] version = "0.13" [dependencies.log] version = "0.4" [dependencies.regex] version = "1.11" [dependencies.rustc-hash] version = "2.0.0" [dependencies.safetensors] version = "0.4" [dependencies.serde] version = "1.0.210" features = [ "derive", "rc", ] [dependencies.serde_bytes] version = "0.11.14" [dependencies.serde_json] version = "1.0" [dependencies.thiserror] version = "2.0" [dependencies.tokio] version = "1.41" features = [ "macros", "rt", "sync", "time", ] default-features = false [dependencies.tracing] version = "0.1.40" optional = true [dependencies.tracing-subscriber] version = "0.3.18" optional = true [dependencies.tracing-tracy] version = "0.11.0" optional = true [dependencies.trait-variant] version = "0.1" [dependencies.uid] version = "0.1" [dependencies.wasm-bindgen] version = "0.2" [dependencies.web-rwkv-derive] version = "0.2.5" [dependencies.wgpu] version = "23.0.0" [dev-dependencies.cbor4ii] version = "0.3.2" features = [ "half-f16", "serde1", ] [dev-dependencies.clap] version = "4.5" features = ["derive"] [dev-dependencies.crossterm] version = "0.28" [dev-dependencies.dialoguer] version = "0.11.0" [dev-dependencies.fastrand] version = "2.2" [dev-dependencies.memmap2] version = "0.9" [dev-dependencies.pollster] version = "0.4.0" [dev-dependencies.ratatui] version = "0.29" features = ["all-widgets"] [dev-dependencies.simple_logger] version = "5.0.0" features = ["stderr"] [dev-dependencies.tokio] version = "1.37" features = ["full"] [features] default = [ "runtime", "subgroup-ops", "tokio-multi-thread", "vanilla", ] native = [ "runtime", "subgroup-ops", "tokio-multi-thread", ] runtime = [] subgroup-ops = [] tokio-multi-thread = ["tokio/rt-multi-thread"] trace = [ "tracing", "tracing-subscriber", "tracing-tracy", ] vanilla = [] web = ["vanilla"]