Skip to content

Commit

Permalink
__INIT__
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Aug 11, 2023
0 parents commit 3762030
Show file tree
Hide file tree
Showing 8 changed files with 584 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and test rust code

on: [push]

permissions:
contents: read

jobs:
build_and_test:
runs-on: ubuntu-latest
name: Build and test binary
steps:
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.67
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --release
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
25 changes: 25 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "dns-ptr-resolver"
version = "1.0.0"
authors = ["William Desportes <williamdes@wdes.fr>"]
edition = "2021"
rust-version = "1.67.0" # MSRV
description = "A program to resolve DNS IPs to PTRs"
homepage = "https://github.com/wdes/dns-ptr-resolver#readme"
repository = "https://github.com/wdes/dns-ptr-resolver"
readme = "README.md"
keywords = ["dns", "ptr", "resolver"]
categories = ["command-line-utilities"]
license = "MPL-2.0"
include = [
"/src/**/*.rs",
"/Cargo.toml",
"/LICENSE",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rayon = "1.7.0"
trust-dns-client = { version = "*", default-features = false }
rustdns = "0.4.0"
Loading

0 comments on commit 3762030

Please sign in to comment.