# 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 = "code-splitter" version = "0.1.5" authors = ["Xiaojing Wang "] build = false exclude = [ "/.github", "/.vscode", "/bindings/**", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Split code into semantic chunks using tree-sitter" readme = "README.md" keywords = [ "code", "split", "tokenizer", "ai", "nlp", ] categories = ["text-processing"] license = "MIT" repository = "https://github.com/wangxj03/code-splitter" [lib] name = "code_splitter" path = "src/lib.rs" [[test]] name = "golang" path = "tests/golang.rs" [[test]] name = "markdown" path = "tests/markdown.rs" [[test]] name = "python" path = "tests/python.rs" [[test]] name = "rust" path = "tests/rust.rs" [dependencies.openssl] version = "0.10" features = ["vendored"] [dependencies.tiktoken-rs] version = "0.5.9" optional = true [dependencies.tokenizers] version = "0.19.1" features = ["http"] optional = true [dependencies.tree-sitter] version = "0.22" [dev-dependencies.tree-sitter-go] version = "0.21" [dev-dependencies.tree-sitter-md] version = "0.2" [dev-dependencies.tree-sitter-python] version = "0.21" [dev-dependencies.tree-sitter-rust] version = "0.21" [features] tiktoken-rs = ["dep:tiktoken-rs"] tokenizers = ["dep:tokenizers"]