57 releases (6 breaking)

new 0.7.2 Nov 17, 2024
0.6.14 Nov 13, 2024
0.4.11 Jul 30, 2024
0.4.0 Mar 31, 2024
0.1.1 Dec 16, 2022

#108 in Development tools

Download history 248/week @ 2024-07-28 4/week @ 2024-08-04 488/week @ 2024-08-11 272/week @ 2024-08-18 1277/week @ 2024-08-25 206/week @ 2024-09-01 439/week @ 2024-09-08 232/week @ 2024-09-15 106/week @ 2024-09-22 26/week @ 2024-09-29 1/week @ 2024-10-06 3/week @ 2024-10-13 1/week @ 2024-10-20 281/week @ 2024-11-03 1035/week @ 2024-11-10

1,333 downloads per month

MIT license

705KB
14K SLoC

liberty-db

pipeline pipeline License liberty-db Docs Benchmark codecov

Highlight Features

Usage

This library is implemented in Rust, with document.

[dependencies]
liberty_db = "0.7"

You can run examples with commands:

# example0
cargo run --example 0_parse_fmt
# example1
cargo run --example 1_parse_fmt_file -- dev/tech/cases/ocv.lib
# example2
cargo run --example 2_prune_lib -- dev/tech/cases/ocv.lib

Benchmark

Basic information as follow, see latest benchmark summary.

Project Comparison

ProjectLangVersionType SupportBoolean
Expression
Comment
AllPartlyAST only
liberty-dbrustlatestcurrent version
si2dr_libertyC1.0Synopsys's version at 2005, many attributes are not supported
OpenTimerC++172STA tool's liberty component
liberty-iorust0.0.4
libertyparserust0.3.0
liberty2jsonrust0.1.0

Self Regression

ProjectLangVersionType SupportBoolean
Expression
Comment
AllPartlyAST only
liberty-dbrustlatestcurrent version
liberty-dbrust0.6.3published at 2024-09-07
liberty-dbrust0.5.9published at 2024-08-27
liberty-dbrust0.4.13published at 2024-08-13
liberty-dbrust0.3.1published at 2023-08-03

Dev

Run unit-test and regression.

cargo test
cargo test --package dev

Run benchmark, it will takes 5h.

cargo bench --bench dev

TODO

  • stream input
  • Linked Group
  • like IndexMap, only sort once and store
  • CI: only do comparsion after tag new version
  • CI: fast regression self in build.yml
  • Fix error when make_golden
    • intrinsic_parasitic group
    • leakage_current group
    • dynamic_current group
  • user define
  • remove GroupWapper, ComplexWapper, SimpleWapper. At leaset remove it in parser and formatter
  • fix missing newline at endding
  • recursive parse boolean expression
  • macros
  • format to liberty
  • support multi-line \
  • support comment
  • Use MutSet to store GroupMap

Dependencies

~6–14MB
~160K SLoC