[package]
edition = "2024"
rust-version = "1.88"
name = "atomwrite"
version = "0.1.36"
authors = ["Danilo Aguiar <daniloaguiarbr@proton.me>"]
build = "build.rs"
exclude = [
".claude/",
".vscode/",
"docs_prd/",
"docs_rules/",
"CLAUDE.md",
"AGENTS.md",
"MEMORY.md",
"**/graphrag.sqlite",
"**/graphrag.sqlite-shm",
"**/graphrag.sqlite-wal",
"**/.enrich-queue.sqlite",
"**/.enrich-queue.sqlite-shm",
"**/.enrich-queue.sqlite-wal",
"**/.ingest-queue.sqlite",
"**/.ingest-queue.sqlite-shm",
"**/.ingest-queue.sqlite-wal",
"gaps.md",
".setting.cyber/",
"*.7z",
"*.log",
"*.env",
"*.png",
"*.jpg",
"*.bak",
"*.bak.*",
"*.*.bak",
"*.*.bak.*",
"*.tmp",
"*.tmp.*",
"*.*.tmp",
"*.*.tmp.*",
"*.journal",
"*.journal.*",
"*.*.journal",
"*.*.journal.*",
"*.atomwrite_tmp",
"*.atomwrite_tmp.*",
"*atomwrite_tmp*",
"*_tmp*",
"*.atomwrite-*",
"*atomwrite-*",
"*.atom_*",
"*atom_*",
"*.atom-*",
"*atom-*",
"*._agent_tmp*",
"._agent_tmp*",
"*agent_tmp*",
"*.tmp_*",
"*.*.tmp_*",
"**/gaps.md",
"graphrag.sqlite",
"graphrag.sqlite.enrich-queue.sqlite",
"**/graphrag.sqlite.enrich-queue.sqlite",
"graphrag.sqlite-wal",
".enrich-queue.sqlite",
".enrich-queue.sqlite-shm",
".ingest-queue.sqlite-shm",
".ingest-queue.sqlite-wal",
".commit_hash",
"**/.commit_hash",
"base_*/**",
"docs_rules*/**",
".atomwrite_*/**",
".atomwrite-*/**",
".atomwrite*/**",
".tmp*/**",
".atom_*/**",
".atom-*/**",
".agent_*/**",
"_agent_*/**",
".staging*/**",
".tmp_*/**",
".setting.cyber/**",
"docs_rules_ingest/**",
".claude/**",
".skill-build/**",
".enrich-overnight/**",
".archive/**",
"uploads/**",
"docs_bugs/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Atomic file operations CLI for LLM agents — read, write, edit, search, replace with NDJSON output"
homepage = "https://github.com/danilo-aguiar-br/atomwrite"
documentation = "https://docs.rs/atomwrite"
readme = "README.md"
keywords = [
"cli",
"atomic-write",
"llm",
"ndjson",
"file-operations",
]
categories = [
"command-line-utilities",
"filesystem",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danilo-aguiar-br/atomwrite"
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[features]
ast = [
"dep:ast-grep-core",
"dep:ast-grep-language",
"dep:tree-sitter",
"dep:tree-sitter-language-pack",
"dep:serde_yaml",
]
core = []
default = [
"core",
"ast",
"lang-rust",
"lang-ts",
"lang-py",
"watch",
]
full = [
"default",
"lang-full",
"watch",
]
i18n-cjk = []
i18n-europe = []
i18n-full = [
"i18n-cjk",
"i18n-rtl",
"i18n-europe",
]
i18n-rtl = []
lang-full = [
"lang-rust",
"lang-ts",
"lang-py",
"lang-go",
]
lang-go = []
lang-py = []
lang-rust = []
lang-ts = []
slow-tests = []
watch = ["dep:notify"]
[lib]
name = "atomwrite"
path = "src/lib.rs"
[[bin]]
name = "atomwrite"
path = "src/main.rs"
[[test]]
name = "cli_apply"
path = "tests/cli_apply.rs"
[[test]]
name = "cli_backup"
path = "tests/cli_backup.rs"
[[test]]
name = "cli_batch"
path = "tests/cli_batch.rs"
[[test]]
name = "cli_calc"
path = "tests/cli_calc.rs"
[[test]]
name = "cli_case"
path = "tests/cli_case.rs"
[[test]]
name = "cli_clap_debug_assert"
path = "tests/cli_clap_debug_assert.rs"
[[test]]
name = "cli_concurrency"
path = "tests/cli_concurrency.rs"
[[test]]
name = "cli_copy"
path = "tests/cli_copy.rs"
[[test]]
name = "cli_count"
path = "tests/cli_count.rs"
[[test]]
name = "cli_delete"
path = "tests/cli_delete.rs"
[[test]]
name = "cli_diff"
path = "tests/cli_diff.rs"
[[test]]
name = "cli_e2e_v0135"
path = "tests/cli_e2e_v0135.rs"
[[test]]
name = "cli_edit"
path = "tests/cli_edit.rs"
[[test]]
name = "cli_extract"
path = "tests/cli_extract.rs"
[[test]]
name = "cli_gap020_diff_workspace"
path = "tests/cli_gap020_diff_workspace.rs"
[[test]]
name = "cli_gap021_scope_readonly"
path = "tests/cli_gap021_scope_readonly.rs"
[[test]]
name = "cli_get_del"
path = "tests/cli_get_del.rs"
[[test]]
name = "cli_hash"
path = "tests/cli_hash.rs"
[[test]]
name = "cli_list"
path = "tests/cli_list.rs"
[[test]]
name = "cli_max_filesize"
path = "tests/cli_max_filesize.rs"
[[test]]
name = "cli_move"
path = "tests/cli_move.rs"
[[test]]
name = "cli_oneshot_timeout_config"
path = "tests/cli_oneshot_timeout_config.rs"
[[test]]
name = "cli_outline"
path = "tests/cli_outline.rs"
[[test]]
name = "cli_query"
path = "tests/cli_query.rs"
[[test]]
name = "cli_read"
path = "tests/cli_read.rs"
[[test]]
name = "cli_regex"
path = "tests/cli_regex.rs"
[[test]]
name = "cli_replace"
path = "tests/cli_replace.rs"
[[test]]
name = "cli_rollback"
path = "tests/cli_rollback.rs"
[[test]]
name = "cli_scope"
path = "tests/cli_scope.rs"
[[test]]
name = "cli_search"
path = "tests/cli_search.rs"
[[test]]
name = "cli_set"
path = "tests/cli_set.rs"
[[test]]
name = "cli_transform"
path = "tests/cli_transform.rs"
[[test]]
name = "cli_v0121_apply_keep"
path = "tests/cli_v0121_apply_keep.rs"
[[test]]
name = "cli_v0121_backup_keep_flag"
path = "tests/cli_v0121_backup_keep_flag.rs"
[[test]]
name = "cli_v0121_batch_keep"
path = "tests/cli_v0121_batch_keep.rs"
[[test]]
name = "cli_v0121_edit_backup"
path = "tests/cli_v0121_edit_backup.rs"
[[test]]
name = "cli_v0121_edit_loop"
path = "tests/cli_v0121_edit_loop.rs"
[[test]]
name = "cli_v0121_help_driven"
path = "tests/cli_v0121_help_driven.rs"
[[test]]
name = "cli_v0121_prune_backups"
path = "tests/cli_v0121_prune_backups.rs"
[[test]]
name = "cli_v0121_rollback_backup"
path = "tests/cli_v0121_rollback_backup.rs"
[[test]]
name = "cli_v0121_sequential_drift"
path = "tests/cli_v0121_sequential_drift.rs"
[[test]]
name = "cli_v0123_backup_default"
path = "tests/cli_v0123_backup_default.rs"
[[test]]
name = "cli_v0123_hyphen_values"
path = "tests/cli_v0123_hyphen_values.rs"
[[test]]
name = "cli_v0123_old_file"
path = "tests/cli_v0123_old_file.rs"
[[test]]
name = "cli_v0123_shrink_guard"
path = "tests/cli_v0123_shrink_guard.rs"
[[test]]
name = "cli_v0124_clap_suggestion"
path = "tests/cli_v0124_clap_suggestion.rs"
[[test]]
name = "cli_v0128_backup_matrix"
path = "tests/cli_v0128_backup_matrix.rs"
[[test]]
name = "cli_v0128_batch_backup"
path = "tests/cli_v0128_batch_backup.rs"
[[test]]
name = "cli_v0128_config_defaults"
path = "tests/cli_v0128_config_defaults.rs"
[[test]]
name = "cli_v0128_edit_stdin_guard"
path = "tests/cli_v0128_edit_stdin_guard.rs"
[[test]]
name = "cli_v0129_fuzzy_replace"
path = "tests/cli_v0129_fuzzy_replace.rs"
[[test]]
name = "cli_v012_audit_regressions"
path = "tests/cli_v012_audit_regressions.rs"
[[test]]
name = "cli_v012_batch4_regressions"
path = "tests/cli_v012_batch4_regressions.rs"
[[test]]
name = "cli_v012_regressions"
path = "tests/cli_v012_regressions.rs"
[[test]]
name = "cli_v012_syntax_check"
path = "tests/cli_v012_syntax_check.rs"
[[test]]
name = "cli_v012_wal"
path = "tests/cli_v012_wal.rs"
[[test]]
name = "cli_v012_xattr_reflink"
path = "tests/cli_v012_xattr_reflink.rs"
[[test]]
name = "cli_v0130_agent_contract"
path = "tests/cli_v0130_agent_contract.rs"
[[test]]
name = "cli_v0133_oneshot_fuzzy"
path = "tests/cli_v0133_oneshot_fuzzy.rs"
[[test]]
name = "cli_v0136_gaps"
path = "tests/cli_v0136_gaps.rs"
[[test]]
name = "cli_v019_g121_search_replace_cwd"
path = "tests/cli_v019_g121_search_replace_cwd.rs"
[[test]]
name = "cli_v019_query_sexpr"
path = "tests/cli_v019_query_sexpr.rs"
[[test]]
name = "cli_wal"
path = "tests/cli_wal.rs"
[[test]]
name = "cli_write"
path = "tests/cli_write.rs"
[[test]]
name = "cross_compile_check"
path = "tests/cross_compile_check.rs"
[[test]]
name = "locale_parity"
path = "tests/locale_parity.rs"
[[test]]
name = "ndjson_valid_test"
path = "tests/ndjson_valid_test.rs"
[[test]]
name = "proptest_backup"
path = "tests/proptest_backup.rs"
[[test]]
name = "proptest_checksum"
path = "tests/proptest_checksum.rs"
[[test]]
name = "proptest_fuzzy"
path = "tests/proptest_fuzzy.rs"
[[test]]
name = "proptest_v0121_backup_delete"
path = "tests/proptest_v0121_backup_delete.rs"
[[test]]
name = "signal_test"
path = "tests/signal_test.rs"
[[test]]
name = "snapshot_write"
path = "tests/snapshot_write.rs"
[[test]]
name = "tracing_test"
path = "tests/tracing_test.rs"
[[bench]]
name = "hash_benchmark"
path = "benches/hash_benchmark.rs"
harness = false
[[bench]]
name = "read_benchmark"
path = "benches/read_benchmark.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.ast-grep-core]
version = "0.43"
optional = true
[dependencies.ast-grep-language]
version = "0.43"
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.blake3]
version = "1"
features = [
"mmap",
"rayon",
]
[dependencies.clap]
version = "4"
features = [
"derive",
"wrap_help",
"string",
"color",
"suggestions",
"cargo",
]
[dependencies.clap_complete]
version = "4"
[dependencies.content_inspector]
version = "0.2"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.directories]
version = "6"
[dependencies.fend-core]
version = "1.5"
[dependencies.filetime]
version = "0.2"
[dependencies.fluent-langneg]
version = "0.14"
[dependencies.grep-matcher]
version = "0.1"
[dependencies.grep-regex]
version = "0.1"
[dependencies.grep-searcher]
version = "0.1"
[dependencies.grex]
version = "1.4"
[dependencies.heck]
version = "0.5"
[dependencies.human-panic]
version = "2"
[dependencies.ignore]
version = "0.4"
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.memchr]
version = "2"
[dependencies.memmap2]
version = "0.9"
[dependencies.mimalloc]
version = "0.1"
default-features = false
[dependencies.notify]
version = "7"
optional = true
[dependencies.rayon]
version = "1"
[dependencies.reflink-copy]
version = "0.1"
[dependencies.regex]
version = "1"
[dependencies.rust-i18n]
version = "4"
[dependencies.same-file]
version = "1"
[dependencies.schemars]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_path_to_error]
version = "0.1"
[dependencies.serde_yaml]
version = "0.9"
optional = true
[dependencies.similar]
version = "3"
[dependencies.strsim]
version = "0.11"
[dependencies.sys-locale]
version = "0.3"
[dependencies.tempfile]
version = "3"
[dependencies.thiserror]
version = "2"
[dependencies.toml]
version = "0.8"
[dependencies.toml_edit]
version = "0.22"
[dependencies.tracing]
version = "0.1"
features = ["release_max_level_info"]
[dependencies.tracing-appender]
version = "0.2"
[dependencies.tracing-error]
version = "0.2"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"fmt",
"ansi",
"std",
"registry",
"tracing-log",
]
default-features = false
[dependencies.tree-sitter]
version = "0.26"
optional = true
[dependencies.tree-sitter-language-pack]
version = "1.8"
features = [
"download",
"dynamic-loading",
]
optional = true
default-features = false
[dependencies.unic-langid]
version = "0.9"
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.walkdir]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.filetime]
version = "0.2"
[dev-dependencies.insta]
version = "1"
features = ["json"]
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.regex]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tracing-test]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"
[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.31"
features = ["fs"]
[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "0.38"
features = ["fs"]
[target.'cfg(target_os = "linux")'.dependencies.signal-hook]
version = "0.4"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = ["fs"]
[target."cfg(unix)".dependencies.signal-hook]
version = "0.4"
[target."cfg(unix)".dependencies.xattr]
version = "1"
[target."cfg(windows)".dependencies.ctrlc]
version = "3.5"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_Storage_FileSystem",
"Win32_System_Console",
]
[profile.bench]
inherits = "release"
[profile.dev.package."*"]
opt-level = 2
[profile.dev.build-override]
opt-level = 0
[profile.min-size]
opt-level = "z"
inherits = "release"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
overflow-checks = true
strip = "symbols"
[profile.release.build-override]
opt-level = 0
codegen-units = 16