1 unstable release

Uses old Rust 2015

0.20.9 Feb 1, 2023

#119 in #tree-sitter

Download history 8/week @ 2023-12-17 14/week @ 2023-12-24 7/week @ 2023-12-31 16/week @ 2024-01-07 10/week @ 2024-01-14 8/week @ 2024-01-21 14/week @ 2024-01-28 15/week @ 2024-02-04 18/week @ 2024-02-11 27/week @ 2024-02-18 57/week @ 2024-02-25 31/week @ 2024-03-03 34/week @ 2024-03-10 27/week @ 2024-03-17 23/week @ 2024-03-24 51/week @ 2024-03-31

141 downloads per month

MIT license

1MB
20K SLoC

tree-sitter-c2rust

Crates.io

This is a fork of Tree Sitter, but with the runtime component automatically converted to Rust using c2rust. This enables use of Tree Sitter parsers without libc, useful for targets like wasm32-unknown-unknown.

Because the conversion is automatic, the resulting code is not idiomatic Rust. But we preserve 1:1 correspondence with the original C code, so that future changes to Tree Sitter can be easily merged into this fork. Furthermore, the Rust bindings are still supported, so this can be used as a drop-in replacement for the regular Tree Sitter crate.

Dependencies

~1.1–1.6MB
~35K SLoC