37 releases

0.6.6 Sep 12, 2024
0.6.2 Aug 31, 2024
0.4.11 Jul 30, 2024
0.4.0 Mar 31, 2024
0.1.0 Feb 27, 2023

#2486 in Development tools

Download history 5/week @ 2024-07-01 260/week @ 2024-07-29 3/week @ 2024-08-05 526/week @ 2024-08-12 371/week @ 2024-08-19 1293/week @ 2024-08-26 160/week @ 2024-09-02 441/week @ 2024-09-09 215/week @ 2024-09-16 59/week @ 2024-09-23 31/week @ 2024-09-30 3/week @ 2024-10-07 6/week @ 2024-10-14

113 downloads per month
Used in liberty-db

MIT license

40KB
857 lines

liberty-db

pipeline pipeline License liberty-db Docs Benchmark

Highlight Features

Usage

This library is implemented in Rust, with document.

[dependencies]
liberty_db = "0.6"

You can run examples with commands:

# example0
cargo run --package example0_parse_fmt
# example1
cargo run --package example1_parse_fmt_file -- dev/tech/cases/ocv.lib
# example2
cargo run --package example2_prune_lib -- dev/tech/cases/ocv.lib

Benchmark

Basic information as follow, see latest benchmark summary.

Project Comparison

ProjLanguageVersionType SupportBoolean ExpressionComment
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
ProjLanguageVersionType SupportBoolean ExpressionComment
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 benchmark yourself, it will takes 30mins.

cargo bench --bench dev

Run unit-test and regression yourself.

cargo test
cargo test --package dev

TODO

  • intrinsic_parasitic group
  • leakage_current group
  • dynamic_current group
  • use PDFJS
  • stream input
  • Linked 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

~260–710KB
~17K SLoC