代码拉取完成,页面将自动刷新
[package]
name = "ninja"
version = "0.8.3"
edition = "2021"
description = "Reverse engineered ChatGPT proxy"
license = "GPL-3.0"
homepage = "https://github.com/gngpp/ninja"
repository = "https://github.com/gngpp/ninja.git"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.75"
clap = { version = "4.4.3", features = ["derive", "env"] }
serde = {version = "1.0.188", features = ["derive"] }
openai = { path = "openai" }
cidr = "0.2.2"
toml = "0.8.0"
url = "2.4.1"
tokio = { version = "1.32.0", default-features = false, features = ["rt"], optional = true }
serde_json = { version = "1.0.107", optional = true }
inquire = { version = "0.6.2", optional = true }
colored_json = { version = "4.0.0", optional = true }
indicatif = { version = "0.17.6", optional = true }
json_to_table = { version = "0.6.0", optional = true }
tabled = { version = "0.12.2", optional = true }
self_update = { version = "0.39.0", default-features = false, features = ["rustls", "archive-tar", "compression-flate2"] }
# allocator
tcmalloc = { version = "0.3.0", optional = true }
snmalloc-rs = { version = "0.3.4", optional = true }
rpmalloc = { version = "0.2.2", optional = true }
jemallocator = { package = "tikv-jemallocator", version = "0.5.4", optional = true }
mimalloc = { version = "0.1.39", default-features = false, optional = true }
[target.'cfg(target_family = "unix")'.dependencies]
daemonize = "0.5.0"
nix = { version = "0.27.1", features = ["signal", "user", "ptrace"]}
[target.'cfg(target_os = "linux")'.dependencies]
sysctl = "0.5.4"
[dev-dependencies]
futures-util = "0.3.28"
serde_json = "1.0.107"
tokio = { version = "1.32.0", default-features = false, features = ["rt"] }
reqwest = { package = "reqwest-impersonate", version ="0.11.30", default-features = false, features = [
"boring-tls", "impersonate","json", "cookies", "stream", "multipart", "socks", "blocking"
] }
base64 = "0.21.4"
viuer = "0.6.2"
hex = "0.4.3"
sha2 = "0.10.8"
env_logger = "0.10.0"
openai = { path = "openai" }
[features]
default = ["serve"]
terminal = [
"openai/api",
"dep:tokio",
"dep:serde_json",
"dep:inquire",
"dep:colored_json",
"dep:indicatif",
"dep:json_to_table",
"dep:tabled"
]
serve = ["limit"]
limit = ["openai/limit", "openai/serve"]
# Enable jemalloc for binaries
jemalloc = ["jemallocator"]
# Enable bundled tcmalloc
tcmalloc = ["tcmalloc/bundled"]
# Enable snmalloc for binaries
snmalloc = ["snmalloc-rs"]
# Enable bundled rpmalloc
rpmalloc = ["dep:rpmalloc"]
# Enable mimalloc for binaries
mimalloc = ["dep:mimalloc"]
[[bin]]
name = "ninja"
path = "src/main.rs"
[[example]]
name = "chatgpt"
required-features = ["openai/api"]
[profile.release]
lto = true
opt-level = 'z'
codegen-units = 1
strip = true
panic = "abort"
[package.metadata.deb]
maintainer = "gngpp <gngppz@gmail.com>"
copyright = "2023, gngpp <gngppz@gmail.com>"
license-file = ["LICENSE", "4"]
extended-description = "Reverse engineered ChatGPT proxy (bypass Cloudflare 403 Access Denied)"
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
["target/release/ninja", "usr/bin/ninja", "755"],
["README.md", "usr/share/doc/ninja/README", "644"],
]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。