Enable CI for the deserde branch
This commit is contained in:
parent
d800d0f181
commit
cbd5c6b940
|
|
@ -1,175 +1,178 @@
|
|||
{
|
||||
"name": "CI",
|
||||
"on": {
|
||||
"push": {
|
||||
"branches": [
|
||||
"trunk",
|
||||
"v*.x"
|
||||
]
|
||||
},
|
||||
"pull_request": {
|
||||
"branches": [
|
||||
"trunk",
|
||||
"v*.x"
|
||||
]
|
||||
}
|
||||
},
|
||||
"jobs": {
|
||||
"check": {
|
||||
"name": "Check",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"strategy": {
|
||||
"fail-fast": false,
|
||||
"matrix": {
|
||||
"rust": [
|
||||
"stable",
|
||||
"beta",
|
||||
"nightly",
|
||||
"1.41.0"
|
||||
]
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "${{ matrix.rust }}",
|
||||
"override": true
|
||||
},
|
||||
"name": "Install Rust ${{ matrix.rust }}"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "check"
|
||||
},
|
||||
"name": "Run `cargo check`"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "check",
|
||||
"args": "--examples"
|
||||
},
|
||||
"name": "Check examples",
|
||||
"if": "matrix.rust != '1.41.0'"
|
||||
}
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"name": "Test",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"strategy": {
|
||||
"matrix": {
|
||||
"rust": [
|
||||
"stable",
|
||||
"beta",
|
||||
"nightly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "${{ matrix.rust }}",
|
||||
"override": true
|
||||
},
|
||||
"name": "Install Rust ${{ matrix.rust }}"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "test"
|
||||
},
|
||||
"name": "Run `cargo test`"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lints": {
|
||||
"name": "Lints",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "stable",
|
||||
"override": true,
|
||||
"components": "rustfmt, clippy"
|
||||
},
|
||||
"name": "Install Rust stable"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "fmt",
|
||||
"args": "--all -- --check"
|
||||
},
|
||||
"name": "Run `cargo fmt`"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "clippy",
|
||||
"args": "-- -D warnings"
|
||||
},
|
||||
"name": "Run `cargo clippy`"
|
||||
}
|
||||
]
|
||||
},
|
||||
"coverage": {
|
||||
"name": "Code Coverage",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "nightly",
|
||||
"override": true
|
||||
},
|
||||
"name": "Install Rust nightly"
|
||||
},
|
||||
{
|
||||
"name": "Run cargo-tarpaulin",
|
||||
"uses": "actions-rs/tarpaulin@v0.1",
|
||||
"with": {
|
||||
"version": "0.12.3",
|
||||
"args": "--ignore-tests -- --test-threads 1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Upload to codecov.io",
|
||||
"uses": "codecov/codecov-action@v1"
|
||||
},
|
||||
{
|
||||
"name": "Archive code coverage results",
|
||||
"uses": "actions/upload-artifact@v1",
|
||||
"with": {
|
||||
"name": "code-coverage-report",
|
||||
"path": "cobertura.xml"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
"name": "CI",
|
||||
"on": {
|
||||
"push": {
|
||||
"branches": [
|
||||
"trunk",
|
||||
"feature/deserde", # Temporary while we work on deserde
|
||||
"v*.x"
|
||||
]
|
||||
},
|
||||
"pull_request": {
|
||||
"branches": [
|
||||
"trunk",
|
||||
"v*.x"
|
||||
]
|
||||
}
|
||||
},
|
||||
"jobs": {
|
||||
"check": {
|
||||
"name": "Check",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"strategy": {
|
||||
"fail-fast": false,
|
||||
"matrix": {
|
||||
"rust": [
|
||||
"stable",
|
||||
"beta",
|
||||
"nightly",
|
||||
"1.41.0"
|
||||
]
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "${{ matrix.rust }}",
|
||||
"override": true
|
||||
},
|
||||
"name": "Install Rust ${{ matrix.rust }}"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "check"
|
||||
},
|
||||
"name": "Run `cargo check`"
|
||||
}
|
||||
# ,
|
||||
# {
|
||||
# "uses": "actions-rs/cargo@v1",
|
||||
# "with": {
|
||||
# "command": "check",
|
||||
# "args": "--examples"
|
||||
# },
|
||||
# "name": "Check examples",
|
||||
# "if": "matrix.rust != '1.41.0'"
|
||||
# }
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"name": "Test",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"strategy": {
|
||||
"matrix": {
|
||||
"rust": [
|
||||
"stable",
|
||||
"beta",
|
||||
"nightly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "${{ matrix.rust }}",
|
||||
"override": true
|
||||
},
|
||||
"name": "Install Rust ${{ matrix.rust }}"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "test"
|
||||
},
|
||||
"name": "Run `cargo test`"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lints": {
|
||||
"name": "Lints",
|
||||
"runs-on": "ubuntu-latest",
|
||||
"steps": [
|
||||
{
|
||||
"uses": "actions/checkout@v2",
|
||||
"name": "Checkout"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/toolchain@v1",
|
||||
"with": {
|
||||
"profile": "minimal",
|
||||
"toolchain": "stable",
|
||||
"override": true,
|
||||
"components": "rustfmt, clippy"
|
||||
},
|
||||
"name": "Install Rust stable"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "fmt",
|
||||
"args": "--all -- --check"
|
||||
},
|
||||
"name": "Run `cargo fmt`"
|
||||
},
|
||||
{
|
||||
"uses": "actions-rs/cargo@v1",
|
||||
"with": {
|
||||
"command": "clippy",
|
||||
"args": "-- -D warnings"
|
||||
},
|
||||
"name": "Run `cargo clippy`"
|
||||
}
|
||||
]
|
||||
}
|
||||
# Tarpaulin seems to not work with bincode_derive
|
||||
# "coverage": {
|
||||
# "name": "Code Coverage",
|
||||
# "runs-on": "ubuntu-latest",
|
||||
# "steps": [
|
||||
# {
|
||||
# "uses": "actions/checkout@v2",
|
||||
# "name": "Checkout"
|
||||
# },
|
||||
# {
|
||||
# "uses": "actions-rs/toolchain@v1",
|
||||
# "with": {
|
||||
# "profile": "minimal",
|
||||
# "toolchain": "nightly",
|
||||
# "override": true
|
||||
# },
|
||||
# "name": "Install Rust nightly"
|
||||
# },
|
||||
# {
|
||||
# "name": "Run cargo-tarpaulin",
|
||||
# "uses": "actions-rs/tarpaulin@v0.1",
|
||||
# "with": {
|
||||
# "version": "0.18.2",
|
||||
# "args": "--ignore-tests -- --test-threads 1"
|
||||
# }
|
||||
# },
|
||||
# {
|
||||
# "name": "Upload to codecov.io",
|
||||
# "uses": "codecov/codecov-action@v1"
|
||||
# },
|
||||
# {
|
||||
# "name": "Archive code coverage results",
|
||||
# "uses": "actions/upload-artifact@v1",
|
||||
# "with": {
|
||||
# "name": "code-coverage-report",
|
||||
# "path": "cobertura.xml"
|
||||
# }
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
54
Cargo.toml
54
Cargo.toml
|
|
@ -1,27 +1,27 @@
|
|||
[package]
|
||||
name = "bincode"
|
||||
version = "2.0.0-dev" # remember to update html_root_url
|
||||
authors = ["Ty Overby <ty@pre-alpha.com>", "Francesco Mazzoli <f@mazzo.li>", "Zoey Riordan <zoey@dos.cafe>"]
|
||||
exclude = ["logo.png", "examples/*", ".gitignore", ".github/"]
|
||||
|
||||
publish = true
|
||||
|
||||
repository = "https://github.com/bincode-org/bincode"
|
||||
documentation = "https://docs.rs/bincode"
|
||||
readme = "./readme.md"
|
||||
categories = ["encoding", "network-programming"]
|
||||
keywords = ["binary", "encode", "decode", "serialize", "deserialize"]
|
||||
|
||||
license = "MIT"
|
||||
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!"
|
||||
|
||||
edition = "2018"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = []
|
||||
alloc = []
|
||||
|
||||
[dependencies]
|
||||
bincode_derive = { path = "derive" }
|
||||
# serde = { version = "1.0.130", optional = true }
|
||||
[package]
|
||||
name = "bincode"
|
||||
version = "2.0.0-dev" # remember to update html_root_url and bincode_derive
|
||||
authors = ["Ty Overby <ty@pre-alpha.com>", "Francesco Mazzoli <f@mazzo.li>", "Zoey Riordan <zoey@dos.cafe>"]
|
||||
exclude = ["logo.png", "examples/*", ".gitignore", ".github/"]
|
||||
|
||||
publish = true
|
||||
|
||||
repository = "https://github.com/bincode-org/bincode"
|
||||
documentation = "https://docs.rs/bincode"
|
||||
readme = "./readme.md"
|
||||
categories = ["encoding", "network-programming"]
|
||||
keywords = ["binary", "encode", "decode", "serialize", "deserialize"]
|
||||
|
||||
license = "MIT"
|
||||
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!"
|
||||
|
||||
edition = "2018"
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = []
|
||||
alloc = []
|
||||
|
||||
[dependencies]
|
||||
bincode_derive = { path = "derive", version = "2.0.0-dev" }
|
||||
# serde = { version = "1.0.130", optional = true }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "bincode_derive"
|
||||
version = "0.1.0"
|
||||
version = "2.0.0-dev" # remember to update bincode
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
|
|
|
|||
Loading…
Reference in New Issue