1
Fork 0

Update to new project style.

This commit is contained in:
Bauke 2022-10-03 00:07:12 +02:00
parent 40aa7afd3e
commit ca447df525
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 51 additions and 16 deletions

12
.gitignore vendored
View File

@ -1,10 +1,6 @@
# Generated by Cargo # Generated by Cargo
# will have compiled files and executables debug/
/target/ target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries # Code coverage results
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html coverage/
Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

View File

@ -2,18 +2,18 @@
[package] [package]
name = "web-ext-native-messaging" name = "web-ext-native-messaging"
description = "WebExtension native messaging with serde_json as the (de)serializer." description = "WebExtension native messaging library for Rust."
version = "0.1.0" repository = "https://git.bauke.xyz/Holllo/web-ext-native-messaging"
authors = ["Holllo <helllo@holllo.cc>"]
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
repository = "https://github.com/Holllo/web-ext-native-messaging" version = "0.1.0"
edition = "2018" authors = ["Holllo <helllo@holllo.org>"]
edition = "2021"
[lib] [lib]
path = "source/lib.rs" path = "source/lib.rs"
[dependencies] [dependencies]
byteorder = "1.4.3" byteorder = "1.4.3"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0.85"
thiserror = "1.0" thiserror = "1.0.37"

39
Makefile.toml Normal file
View File

@ -0,0 +1,39 @@
[tasks.fmt]
command = "cargo"
args = ["fmt", "${@}"]
[tasks.check]
command = "cargo"
args = ["check", "${@}"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "${@}"]
[tasks.test]
command = "cargo"
args = ["test", "${@}"]
[tasks.doc]
command = "cargo"
args = ["doc", "${@}"]
[tasks.build]
command = "cargo"
args = ["build", "${@}"]
[tasks.complete-check]
dependencies = ["fmt", "check", "clippy", "test", "doc", "build"]
[tasks.code-coverage]
workspace = false
install_crate = "cargo-tarpaulin"
command = "cargo"
args = [
"tarpaulin",
"--exclude-files=target/*",
"--out=html",
"--output-dir=coverage",
"--skip-clean",
"--target-dir=target/tarpaulin"
]