Skip to content

Commit d2fa7fb

Browse files
committed
Initial commit
0 parents  commit d2fa7fb

File tree

5 files changed

+108
-0
lines changed

5 files changed

+108
-0
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI checks
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
lint:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: 1.45.2
16+
override: true
17+
18+
# Build the code before running cargo fmt
19+
- name: cargo build
20+
uses: actions-rs/cargo@v1
21+
with:
22+
command: build
23+
args: --all
24+
25+
# Ensure all code has been formatted with rustfmt
26+
- run: rustup component add rustfmt
27+
- name: Check formatting
28+
uses: actions-rs/cargo@v1
29+
with:
30+
command: fmt
31+
args: --all -- --check --color always
32+
33+
# Build benchmarks to prevent bitrot
34+
- name: Build benchmarks
35+
uses: actions-rs/cargo@v1
36+
with:
37+
command: build
38+
args: --all --benches
39+
40+
build_and_test:
41+
name: Test on ${{ matrix.os }}
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
matrix:
45+
# We don't need to test across multiple platforms yet
46+
# os: [ubuntu-latest, windows-latest, macOS-latest]
47+
os: [ubuntu-latest]
48+
49+
steps:
50+
- uses: actions/checkout@v1
51+
- uses: actions-rs/toolchain@v1
52+
with:
53+
toolchain: 1.45.2
54+
override: true
55+
- name: Build tests
56+
uses: actions-rs/cargo@v1
57+
with:
58+
command: build
59+
args: --verbose --release --all --tests --all-features
60+
- name: Run tests
61+
uses: actions-rs/cargo@v1
62+
with:
63+
command: test
64+
args: --verbose --release --all

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/target
2+
**/*.rs.bk
3+
Cargo.lock
4+
.vscode

Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "pollard"
3+
version = "0.0.0"
4+
authors = [
5+
"Sean Bowe <[email protected]>",
6+
]
7+
edition = "2018"
8+
description = """
9+
TBD
10+
"""
11+
license = "MIT"
12+
repository = "https://github.com/zcash/pollard"
13+
documentation = "https://docs.rs/pollard"
14+
readme = "README.md"
15+
16+
# publish = false
17+
18+
[package.metadata.docs.rs]
19+
rustdoc-args = [ "--html-in-header", "katex-header.html" ]

katex-header.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
2+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
3+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"></script>
4+
<script>
5+
document.addEventListener("DOMContentLoaded", function() {
6+
renderMathInElement(document.body, {
7+
delimiters: [
8+
{left: "$$", right: "$$", display: true},
9+
{left: "\\(", right: "\\)", display: false},
10+
{left: "$", right: "$", display: false},
11+
{left: "\\[", right: "\\]", display: true}
12+
]
13+
});
14+
});
15+
</script>

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//! # pollard
2+
3+
#![deny(intra_doc_link_resolution_failure)]
4+
#![deny(missing_debug_implementations)]
5+
#![deny(missing_docs)]
6+
#![deny(unsafe_code)]

0 commit comments

Comments
 (0)