Skip to content

Commit

Permalink
Update crate name (#23)
Browse files Browse the repository at this point in the history
Thanks to the Daan for giving us access to publish to the original
`tblgen` crate, we can now switch from the old `tblgen-alt` to `tblgen`.
Future updates will be pushed to the original crate.
  • Loading branch information
edg-l authored Jan 16, 2025
1 parent f94def2 commit fa356d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "tblgen-alt"
version = "0.5.0"
name = "tblgen"
version = "0.5.1"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Daan Vanoverloop"]
description = "Safe Rust bindings for TableGen. Alternative updated version."
repository = "https://github.com/edg-l/tblgen-rs-alt"
keywords = ["llvm", "tablegen", "bindings", "wrapper"]
categories = ["development-tools::ffi"]
documentation = "https://mlir-rs.github.io/tblgen-rs-alt/tblgen_alt/"
documentation = "https://mlir-rs.github.io/tblgen-rs/tblgen/"
exclude = ["doc/"]

[features]
Expand All @@ -19,9 +19,9 @@ llvm18-0 = []
llvm19-0 = []

[dependencies]
thiserror = "2.0.9"
thiserror = "2.0.11"
paste = "1.0.15"

[build-dependencies]
bindgen = "0.71.1"
cc = "1.2.7"
cc = "1.2.9"
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# tblgen

[![GitHub Action](https://img.shields.io/github/actions/workflow/status/edg-l/tblgen-rs-alt/test.yaml?branch=master&style=flat-square)](https://github.com/edg-l/tblgen-rs-alt/actions?query=workflow%3Atest)
[![Crate](https://img.shields.io/crates/v/tblgen-alt.svg?style=flat-square)](https://crates.io/crates/tblgen-alt)
![Crates.io Total Downloads](https://img.shields.io/crates/d/tblgen-alt)
![Crates.io License](https://img.shields.io/crates/l/tblgen-alt)
[![GitHub Action](https://img.shields.io/github/actions/workflow/status/edg-l/tblgen-rs/test.yaml?branch=master&style=flat-square)](https://github.com/edg-l/tblgen-rs/actions?query=workflow%3Atest)
[![Crate](https://img.shields.io/crates/v/tblgen.svg?style=flat-square)](https://crates.io/crates/tblgen)
![Crates.io Total Downloads](https://img.shields.io/crates/d/tblgen)
![Crates.io License](https://img.shields.io/crates/l/tblgen)

Original project: https://gitlab.com/Danacus/tblgen-rs.

This is a updated (LLVM 19) fork of https://gitlab.com/Danacus/tblgen-rs.
Original author: Daan Vanoverloop.

Thanks to the Daan for giving us access to publish to the original `tblgen` crate, we can now switch from the old `tblgen-alt` to `tblgen`. Future updates will be pushed to the original crate.

This crate provides raw bindings and a safe wrapper for TableGen, a domain-specific language used by the LLVM project.

The goal of this crate is to enable users to develop custom TableGen backends in Rust. Hence the primary use case of this crate are procedural macros that generate Rust code from TableGen description files.

## Documentation

Read the documentation at https://mlir-rs.github.io/tblgen-rs-alt/tblgen_alt/.
Read the documentation at https://mlir-rs.github.io/tblgen-rs/tblgen/.

## Supported LLVM Versions

An installation of LLVM is required to use this crate. Both LLVM 16, 17 and 18 are supported and can be selected using feature flags.
An installation of LLVM is required to use this crate. Both LLVM 16, 17, 18 and 19 are supported and can be selected using feature flags.

The `TABLEGEN_<version>_PREFIX` environment variable can be used to specify a custom directory of the LLVM installation.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//! `SourceMgr` class.
//!
//! ```rust
//! use tblgen_alt::{TableGenParser, RecordKeeper};
//! use tblgen::{TableGenParser, RecordKeeper};
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let keeper: RecordKeeper = TableGenParser::new()
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//! iterates over classes and defs defined in this file.
//!
//! ```rust
//! use tblgen_alt::{TableGenParser, RecordKeeper};
//! use tblgen::{TableGenParser, RecordKeeper};
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let keeper: RecordKeeper = TableGenParser::new()
Expand All @@ -56,7 +56,7 @@
//! By adding include paths, external TableGen files can be included.
//!
//! ```rust
//! use tblgen_alt::{TableGenParser, RecordKeeper};
//! use tblgen::{TableGenParser, RecordKeeper};
//! use std::path::Path;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand All @@ -74,7 +74,7 @@
//! You can also pass an included filename directly.
//!
//! ```rust
//! use tblgen_alt::{TableGenParser, RecordKeeper};
//! use tblgen::{TableGenParser, RecordKeeper};
//! use std::path::Path;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
Expand Down

0 comments on commit fa356d3

Please sign in to comment.