Skip to content

Commit da159aa

Browse files
committed
improve build time (#2)
* improve build time * fix git misstake * docs * remove hasher * add debug on number * fix windows again
1 parent 117b1fe commit da159aa

File tree

18 files changed

+2472
-2209
lines changed

18 files changed

+2472
-2209
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
rust-version: nightly
3737
- name: Generate Docs (reference docs.rs)
3838
run: |
39-
cargo rustdoc -- -Z unstable-options $(cargo metadata --format-version 1 | jq --raw-output '.packages | map("--extern-html-root-url=\(.name)=https://docs.rs/\(.name)/\(.version)") | join(" ")')
39+
cargo rustdoc -- --cfg docsrs -Z unstable-options $(cargo metadata --format-version 1 | jq --raw-output '.packages | map("--extern-html-root-url=\(.name)=https://docs.rs/\(.name)/\(.version)") | join(" ")')
4040
- uses: actions/upload-pages-artifact@v1
4141
with:
4242
path: 'target/doc'

.github/workflows/test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ jobs:
2020
- nightly
2121
features:
2222
- ""
23-
- --no-default-features
23+
- "-F debug"
24+
- "-F number"
25+
- "-F pointer"
26+
- "-F debug -F number"
27+
- "-F number -F pointer"
28+
- --all-features
2429
include:
2530
- rust: nightly
2631
cargo_flags: -Z minimal-versions

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,22 @@ readme = "README.md"
1010
repository = "https://github.com/ModProg/template"
1111
documentation = "https://docs.rs/template"
1212

13+
[features]
14+
default = ["debug", "number", "pointer"]
15+
debug = []
16+
number = []
17+
pointer = []
18+
1319
[dev-dependencies]
1420
derive_more = "0.99.17"
1521
proptest = "1.1.0"
1622
proptest-derive = "0.3.0"
1723
quote = "1.0.23"
1824
trybuild2 = "1.0.0"
25+
26+
# docs.rs-specific configuration
27+
[package.metadata.docs.rs]
28+
# document all features
29+
all-features = true
30+
# defines the configuration attribute `docsrs`
31+
rustdoc-args = ["--cfg", "docsrs"]

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
[![Documentation for `main`](https://img.shields.io/badge/docs-main-informational)](https://modprog.github.io/template/template/)
55
<!-- [![Crates.io](https://img.shields.io/crates/v/template)](https://crates.io/crates/template) -->
66
<!-- [![Docs.rs](https://img.shields.io/crates/v/template?color=informational&label=docs.rs)](https://docs.rs/template) -->
7-

src/hard_coded.rs

Lines changed: 87 additions & 2131 deletions
Large diffs are not rendered by default.

src/hard_coded/binary.rs

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.

src/hard_coded/debug.rs

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.

src/hard_coded/display.rs

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.

src/hard_coded/lower_exp.rs

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.

src/hard_coded/lower_hex.rs

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)