48 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.0 Feb 27, 2023

#2522 in Development tools

Download history 256/week @ 2024-07-28 7/week @ 2024-08-04 501/week @ 2024-08-11 293/week @ 2024-08-18 1318/week @ 2024-08-25 214/week @ 2024-09-01 455/week @ 2024-09-08 211/week @ 2024-09-15 72/week @ 2024-09-22 32/week @ 2024-09-29 3/week @ 2024-10-06 5/week @ 2024-10-13 1/week @ 2024-10-20 293/week @ 2024-11-03 1081/week @ 2024-11-10

1,395 downloads per month
Used in liberty-db

MIT license

46KB
1K 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

~275–720KB
~16K SLoC