Cargo Features

ast-grep-py has no features set by default.

ast-grep-py = { version = "0.25.2", features = ["python"] }

uncomment default features when developing pyo3

python = pyo3, pythonize

Enables extension-module of pyo3 ^0.21.2


Use this feature when building an extension module.
It tells the linker to keep the python symbols unresolved,
so that the module can also be used with statically linked python interpreters.

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

pyo3 python?

Enables pyo3 ^0.21.2

pythonize python?