forked from yycdavid/egg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
7,526 additions
and
2,731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
name: Build and Test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
- name: Cache cargo bin | ||
uses: actions/cache@v1 | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cargo/bin | ||
key: ${{ runner.os }}-cargo-bin | ||
- name: Install cargo web | ||
run: which cargo-web || cargo install cargo-web | ||
- name: Install cbc | ||
run: sudo apt-get install coinor-libcbc-dev | ||
- name: Test | ||
run: make test | ||
nits: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install cargo deadlinks | ||
run: which cargo-deadlinks || cargo install cargo-deadlinks | ||
- name: Install graphviz | ||
run: sudo apt-get update && sudo apt-get install graphviz | ||
- name: Build and Test | ||
run: make | ||
run: | | ||
curl -L -o ~/.cargo/bin/cargo-deadlinks https://github.com/deadlinks/cargo-deadlinks/releases/download/0.4.2/deadlinks-linux | ||
chmod +x ~/.cargo/bin/cargo-deadlinks | ||
cargo deadlinks --version | ||
- name: Nits | ||
run: make nits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish Docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Build Docs | ||
run: | | ||
cargo doc --no-deps --all-features | ||
touch target/doc/.nojekyll # prevent jekyll from running | ||
- name: Deploy 🚀 | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: target/doc # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,60 @@ | ||
[package] | ||
name = "egg" | ||
version = "0.6.1-dev" | ||
authors = ["Max Willsey <[email protected]>"] | ||
edition = "2018" | ||
categories = ["data-structures"] | ||
description = "An implementation of egraphs" | ||
repository = "https://github.com/mwillsey/egg" | ||
readme = "README.md" | ||
license = "MIT" | ||
edition = "2018" | ||
keywords = ["e-graphs"] | ||
categories = ["data-structures"] | ||
license = "MIT" | ||
name = "egg" | ||
readme = "README.md" | ||
repository = "https://github.com/egraphs-good/egg" | ||
version = "0.9.5" | ||
|
||
[dependencies] | ||
symbolic_expressions = "5" | ||
log = "0.4" | ||
smallvec = "1" | ||
indexmap = "1" | ||
instant = "0.1" | ||
once_cell = "1" | ||
env_logger = { version = "0.9.0", default-features = false } | ||
fxhash = "0.2.1" | ||
hashbrown = "0.12.1" | ||
indexmap = "1.8.1" | ||
quanta = "0.12" | ||
log = "0.4.17" | ||
smallvec = { version = "1.8.0", features = ["union", "const_generics"] } | ||
symbol_table = { version = "0.2.0", features = ["global"] } | ||
symbolic_expressions = "5.0.3" | ||
thiserror = "1.0.31" | ||
num-bigint = "0.4" | ||
num-traits = "0.2" | ||
|
||
# for the lp feature | ||
coin_cbc = { version = "0.1.6", optional = true } | ||
|
||
# for the serde-1 feature | ||
serde = { version = "1", features = ["derive"], optional = true } | ||
serde = { version = "1.0.137", features = ["derive"], optional = true } | ||
vectorize = { version = "0.2.0", optional = true } | ||
|
||
# for the reports feature | ||
serde_json = { version = "1", optional = true } | ||
serde_json = { version = "1.0.81", optional = true } | ||
saturating = "0.1.0" | ||
|
||
[dev-dependencies] | ||
env_logger = {version = "0.7", default-features = false} | ||
ordered-float = "1" | ||
ordered-float = "3.0.0" | ||
|
||
[features] | ||
upward-merging = [] | ||
stdweb = [ "instant/stdweb" ] | ||
serde-1 = [ "serde", "indexmap/serde-1" ] | ||
reports = [ "serde-1", "serde_json" ] | ||
|
||
[workspace] | ||
members = [ | ||
".", | ||
"web-demo", | ||
# forces the use of indexmaps over hashmaps | ||
deterministic = [] | ||
lp = ["coin_cbc"] | ||
reports = ["serde-1", "serde_json"] | ||
serde-1 = [ | ||
"serde", | ||
"indexmap/serde-1", | ||
"hashbrown/serde", | ||
"symbol_table/serde", | ||
"vectorize", | ||
] | ||
wasm-bindgen = [] | ||
|
||
# private features for testing | ||
test-explanations = [] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] |
Oops, something went wrong.