101 releases

0.2.100 Jan 12, 2025
0.2.99 Dec 7, 2024
0.2.97 Nov 30, 2024
0.2.92 Mar 4, 2024
0.2.15 Jul 26, 2018

#1319 in WebAssembly

Download history 1449248/week @ 2024-10-25 1365605/week @ 2024-11-01 1344747/week @ 2024-11-08 1378426/week @ 2024-11-15 1243351/week @ 2024-11-22 1337889/week @ 2024-11-29 1471108/week @ 2024-12-06 1403437/week @ 2024-12-13 776824/week @ 2024-12-20 762251/week @ 2024-12-27 1300634/week @ 2025-01-03 1721721/week @ 2025-01-10 1577689/week @ 2025-01-17 1647646/week @ 2025-01-24 1755866/week @ 2025-01-31 1908658/week @ 2025-02-07

7,223,029 downloads per month
Used in 40,717 crates (2 directly)

MIT/Apache

140KB
3K SLoC

A common backend for bindgen crates.

This (internal) crate provides functionality common to multiple bindgen dependency crates. There are 4 main things exported from this crate:

  1. TryToTokens

    Provides the ability to attempt conversion from an AST struct into a TokenStream

  2. Diagnostic

    A struct used to provide diagnostic responses for failures of said tokenization

  3. ast

    Abstract Syntax Tree types used to represent a Rust program, with the necessary metadata to generate bindings for it

  4. util

    Common utilities for manipulating parsed types from syn

Dependencies

~0.4–1MB
~19K SLoC