# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. [package] name = "libcst" version = "1.5.1" authors = ["LibCST Developers"] edition = "2018" rust-version = "1.70" description = "A Python parser and Concrete Syntax Tree library." license = "MIT AND (MIT AND PSF-2.0)" repository = "https://github.com/Instagram/LibCST" documentation = "https://libcst.rtfd.org" keywords = ["python", "cst", "ast"] categories = ["parser-implementations"] [lib] name = "libcst_native" crate-type = ["cdylib", "rlib"] [[bin]] name = "parse" path = "src/bin.rs" [features] # This is a bit of a hack, since `cargo test` doesn't work with `extension-module`. # To run tests, use `cargo test --no-default-features`. # # Once https://github.com/PyO3/pyo3/pull/1123 lands, it may be better to use # `-Zextra-link-arg` for this instead. default = ["py"] py = ["pyo3", "pyo3/extension-module"] trace = ["peg/trace"] [dependencies] paste = "1.0.15" pyo3 = { version = "0.20", optional = true } thiserror = "1.0.63" peg = "0.8.4" chic = "1.2.2" regex = "1.10.6" memchr = "2.7.4" libcst_derive = { path = "../libcst_derive", version = "1.4.0" } [dev-dependencies] criterion = { version = "0.5.1", features = ["html_reports"] } difference = "2.0.0" rayon = "1.10.0" itertools = "0.13.0" [[bench]] name = "parser_benchmark" harness = false