Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ fancy-regex = "0.20"
# embedders. Re-enabled by the bashkit `wasm_js` feature for the JS packages.
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
chrono-tz = "0.10"
encoding_rs = "0.8"
# In-process terminal screen model (terminal feature)
vt100 = "0.18"

Expand Down
2 changes: 1 addition & 1 deletion crates/bashkit-capi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ crate-type = ["cdylib", "rlib"]
# `tzdata` is listed explicitly: the C ABI is a general-purpose embedding
# surface, so `date` must keep honouring named `TZ=` zones the way it did
# before that became a feature.
bashkit = { path = "../bashkit", default-features = false, features = ["git", "jq", "tzdata", "realfs", "python", "typescript"] }
bashkit = { path = "../bashkit", default-features = false, features = ["git", "jq", "tzdata", "iconv_charsets", "realfs", "python", "typescript"] }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
2 changes: 1 addition & 1 deletion crates/bashkit-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interactive = ["dep:rustyline", "dep:terminal_size", "dep:signal-hook"]
# `tzdata` is listed explicitly: an interactive shell must keep honouring
# named `TZ=` zones in `date`, which stopped being implied when chrono-tz
# moved behind a feature.
bashkit = { path = "../bashkit", version = "0.21.0", default-features = false, features = ["http_client", "ring", "git", "jq", "tzdata"] }
bashkit = { path = "../bashkit", version = "0.21.0", default-features = false, features = ["http_client", "ring", "git", "jq", "tzdata", "iconv_charsets"] }
tokio = { workspace = true, features = ["macros", "net", "rt", "rt-multi-thread", "time", "io-std"] }
clap.workspace = true
anyhow.workspace = true
Expand Down
12 changes: 11 additions & 1 deletion crates/bashkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ fancy-regex = { workspace = true }
# Date/Time
chrono = { workspace = true }
chrono-tz = { workspace = true, optional = true }
encoding_rs = { workspace = true, optional = true }
vt100 = { workspace = true, optional = true }

# HTTP client (for curl/wget) - optional, enabled with http_client feature
Expand Down Expand Up @@ -153,7 +154,7 @@ turso_core = { workspace = true, optional = true }
branches = { workspace = true, optional = true }

[features]
default = ["bash_tool", "ring", "tzdata"]
default = ["bash_tool", "ring", "tzdata", "iconv_charsets"]
# Named IANA timezone support for the `date` builtin's `TZ=` handling, via the
# chrono-tz database. On by default.
#
Expand All @@ -170,6 +171,15 @@ default = ["bash_tool", "ring", "tzdata"]
# is still never consulted. `TZ=UTC`, unset, empty, and path-style values are
# unaffected.
tzdata = ["dep:chrono-tz"]
# Code pages for the `iconv` builtin beyond UTF-8/ASCII/Latin-1/UTF-16:
# windows-125x, iso-8859-x, koi8, macintosh and the CJK sets, from the WHATWG
# Encoding Standard tables in encoding_rs. On by default.
#
# Important decision: a feature for the same reason as `tzdata`: the CJK
# tables are a few hundred KB of static data that the slim browser wasm
# package should not carry. Without it `iconv` names other charsets as
# unsupported and exits 1; the built-in charsets are unaffected.
iconv_charsets = ["dep:encoding_rs"]
# Enable the LLM-facing `BashTool` wrapper: the `Tool` trait, `ToolExecution`,
# OpenAI tool-definition/JSON-schema helpers, and the `tower::Service` bridge.
# On by default. Disable with `--no-default-features` to compile just the
Expand Down
Loading
Loading