Skip to content

Commit 468fdf2

Browse files
committed
Initial commit
0 parents  commit 468fdf2

File tree

15 files changed

+2211
-0
lines changed

15 files changed

+2211
-0
lines changed

.github/workflows/main.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches:
5+
- master
6+
7+
name: CI
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
components: rustfmt, clippy
21+
22+
- uses: actions-rs/cargo@v1
23+
with:
24+
command: fmt
25+
args: --all -- --check
26+
27+
- uses: actions-rs/[email protected]
28+
with:
29+
crate: cargo-hack
30+
version: latest
31+
use-tool-cache: true
32+
33+
- uses: actions-rs/cargo@v1
34+
with:
35+
command: hack
36+
args: check --workspace --ignore-private --each-feature --no-dev-deps
37+
38+
- uses: actions-rs/cargo@v1
39+
with:
40+
command: check
41+
args: --workspace --all-targets --all-features
42+
43+
- uses: actions-rs/cargo@v1
44+
with:
45+
command: test
46+
47+
- uses: actions-rs/clippy-check@v1
48+
with:
49+
token: ${{ secrets.GITHUB_TOKEN }}
50+
args: --all-features
51+
52+
- uses: actions-rs/audit-check@v1
53+
with:
54+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
Cargo.lock

Cargo.toml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[package]
2+
name = "fastrlp"
3+
version = "0.2.2"
4+
edition = "2021"
5+
license = "MPL-2.0"
6+
description = "Fast RLP serialization library"
7+
repository = "https://github.com/vorot93/fastrlp"
8+
9+
[dependencies]
10+
arrayvec = { version = "0.7", default-features = false }
11+
auto_impl = "1"
12+
bytes = { version = "1", default-features = false }
13+
ethnum = { version = "1", default-features = false, optional = true }
14+
ethereum-types = { version = "0.14", default-features = false, optional = true }
15+
fastrlp-derive = { version = "0.1", path = "fastrlp-derive", optional = true }
16+
17+
[dev-dependencies]
18+
fastrlp-test = { path = ".", package = "fastrlp", features = [
19+
"derive",
20+
"std",
21+
"ethnum",
22+
"ethbloom",
23+
"ethereum-types",
24+
] }
25+
criterion = "0.4"
26+
hex-literal = "0.3"
27+
28+
[features]
29+
alloc = []
30+
derive = ["fastrlp-derive"]
31+
std = ["alloc"]
32+
ethbloom = ["ethereum-types/ethbloom"]
33+
34+
[[bench]]
35+
name = "bench"
36+
harness = false
37+
38+
[workspace]
39+
members = ["fastrlp-derive"]

0 commit comments

Comments
 (0)