Skip to content

Commit 2647917

Browse files
chore: initialize project
1 parent e0e4344 commit 2647917

File tree

7 files changed

+485
-1
lines changed

7 files changed

+485
-1
lines changed

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
on: [push, pull_request]
2+
3+
name: Test
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest]
10+
rust-toolchain: [stable]
11+
fail-fast: false
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Install Rust toolchain
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: ${{ matrix.rust-toolchain }}
23+
components: rustfmt
24+
override: true
25+
26+
- name: Verify versions
27+
run: rustc --version && rustup --version && cargo --version
28+
29+
- name: Cache build artifacts
30+
id: cache-cargo
31+
uses: actions/cache@v2
32+
with:
33+
path: |
34+
~/.cargo/registry
35+
~/.cargo/git
36+
target
37+
key: ${{ runner.os }}-cargo-${{ matrix.rust-toolchain }}
38+
39+
- name: Test code
40+
run: cargo test
41+
42+
- name: Check code style
43+
run: cargo fmt -- --check

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Editor
2+
.nova
3+
4+
# macOS
5+
.DS_Store
6+
7+
# Rust
8+
target

Cargo.lock

+25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[package]
2+
name = "prose-pod-api"
3+
version = "1.0.0"
4+
description = "Prose Pod API server."
5+
readme = "README.md"
6+
license = "MPL-2.0"
7+
edition = "2021"
8+
homepage = "https://github.com/prose-im/prose-pod-api"
9+
repository = "https://github.com/prose-im/prose-pod-api.git"
10+
publish = false
11+
authors = ["Valerian Saliou <[email protected]>"]
12+
13+
[[bin]]
14+
name = "prose-pod-api"
15+
path = "src/main.rs"
16+
doc = false
17+
18+
[dependencies]
19+
log = { version = "0.4", features = ["std"] }
20+
21+
[profile.dev]
22+
opt-level = 0
23+
debug = true
24+
debug-assertions = true
25+
26+
[profile.release]
27+
opt-level = "s"
28+
lto = true
29+
debug = false
30+
debug-assertions = false
31+
panic = "abort"

0 commit comments

Comments
 (0)