# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "seqknock-nftables" version = "0.2.0" authors = ["Jonas Eriksson "] description = "TCP Sequence number-based knocking; nftables based server protector" homepage = "https://git.sr.ht/~upto/seqknock/" readme = "README.md" license = "GPL-2.0 OR Apache-2.0" repository = "https://git.sr.ht/~upto/seqknock/" resolver = "1" [[package.metadata.generate-rpm.assets]] source = "target/release/seqknock-nftables" dest = "/usr/sbin/seqknock-nftables" mode = "755" [[package.metadata.generate-rpm.assets]] source = "seqknock-nftables/files/seqknock-nftables.service" dest = "/lib/systemd/system/seqknock-nftables.service" mode = "644" [[package.metadata.generate-rpm.assets]] source = "seqknock-nftables/files/config.yaml" dest = "/etc/seqknock-nftables/config.yaml" mode = "600" [[package.metadata.generate-rpm.assets]] source = "target/man-out/seqknock-nftables.1.gz" dest = "/usr/share/man/man1/seqknock-nftables.1.gz" mode = "644" [[package.metadata.generate-rpm.assets]] source = "target/man-out/seqknock-nftables-config.5.gz" dest = "/usr/share/man/man1/seqknock-nftables-config.5.gz" mode = "644" [package.metadata.generate-rpm.requires] nftables = ">= 0.9.4" [package.metadata.deb] depends = "nftables" assets = [ [ "target/release/seqknock-nftables", "usr/bin/", "755", ], [ "files/seqknock-nftables.service", "/lib/systemd/system/seqknock-nftables.service", "644", ], [ "files/config.yaml", "/etc/seqknock-nftables/config.yaml", "600", ], [ "target/man-out/seqknock-nftables.1.gz", "share/man/man1", "644", ], [ "target/man-out/seqknock-nftables-config.5.gz", "share/man/man1", "644", ], ] [dependencies.clap] version = "3.2" features = ["derive"] [dependencies.hmac] version = "0.12" [dependencies.libnftables1-sys] version = "0.1.0" [dependencies.log] version = "0.4" [dependencies.log4rs] version = "1.2" [dependencies.regex] version = "1" [dependencies.seqknock-common] version = "0.1" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_yaml] version = "0.8" [dependencies.sha3] version = "0.10" [dependencies.signal-hook] version = "0.3" [dependencies.snafu] version = "0.7.3" [dependencies.validator] version = "0.15" features = ["derive"] [dev-dependencies.indoc] version = "1.0" [dev-dependencies.tempfile] version = "3"