Skip to content

Commit a165c92

Browse files
committed
__INIT__
0 parents  commit a165c92

File tree

8 files changed

+517
-0
lines changed

8 files changed

+517
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[Makefile]
11+
indent_style = tab

.env.dist

Whitespace-only changes.

.github/workflows/rust.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build and test rust code
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Cache cargo registry
10+
uses: actions/cache@v3
11+
with:
12+
path: ~/.cargo/registry
13+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
14+
- name: Cache cargo index
15+
uses: actions/cache@v3
16+
with:
17+
path: ~/.cargo/git
18+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
19+
- name: Cache cargo build
20+
uses: actions/cache@v3
21+
with:
22+
path: target
23+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
26+
- name: Set up toolchain
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: stable
31+
override: true
32+
- name: Build
33+
uses: actions-rs/cargo@v1
34+
with:
35+
command: build
36+
args: --release
37+
38+
test:
39+
needs: build
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Cache cargo registry
43+
uses: actions/cache@v3
44+
with:
45+
path: ~/.cargo/registry
46+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
47+
- name: Cache cargo index
48+
uses: actions/cache@v3
49+
with:
50+
path: ~/.cargo/git
51+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
52+
- name: Cache cargo build
53+
uses: actions/cache@v3
54+
with:
55+
path: target
56+
key: ${{ runner.os }}-cargo-test-build-target-${{ hashFiles('**/Cargo.lock') }}
57+
- name: Checkout repository
58+
uses: actions/checkout@v3
59+
- name: Set up toolchain
60+
uses: actions-rs/toolchain@v1
61+
with:
62+
profile: minimal
63+
toolchain: stable
64+
override: true
65+
- name: Test
66+
uses: actions-rs/cargo@v1
67+
with:
68+
command: test

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
/target/
4+
5+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7+
Cargo.lock
8+
9+
# These are backup files generated by rustfmt
10+
**/*.rs.bk
11+
12+
/.vscode
13+
/.env
14+
!/.env.dist
15+
/permafrost.db

Cargo.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "mail-autodiscover-autoconfig"
3+
version = "0.1.0"
4+
authors = ["William Desportes <[email protected]>"]
5+
edition = "2021"
6+
7+
[dependencies]
8+
# ENV
9+
dotenv = "0.15.0"
10+
11+
# Webserver
12+
rocket = { version = "0.5.0-rc.2", features = ["json"] }
13+
14+
# Serialization/Deserialization
15+
serde_json = "1.0.64"
16+
serde = "1.0.126"
17+
serde_derive = "1.0.126"

0 commit comments

Comments
 (0)