Skip to content

Commit f09b3d3

Browse files
committed
Add Rocket skeleton with a route prototype
This commit adds a single route `/v1/syntaxes` that returns a list of supported syntaxes as well as defines a project layout. It's supposed to be a starting point for all further work.
0 parents  commit f09b3d3

File tree

11 files changed

+1203
-0
lines changed

11 files changed

+1203
-0
lines changed

.github/workflows/tests.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Tests
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
RUSTFLAGS: -Dwarnings
10+
RUST_BACKTRACE: 1
11+
12+
jobs:
13+
cargo-fmt:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
profile: minimal
22+
components: rustfmt
23+
override: true
24+
25+
- uses: actions-rs/cargo@v1
26+
with:
27+
command: fmt
28+
args: --all -- --check
29+
30+
cargo-test:
31+
strategy:
32+
matrix:
33+
os:
34+
- ubuntu-latest
35+
- windows-latest
36+
- macos-latest
37+
rust-version:
38+
- nightly
39+
40+
runs-on: ${{ matrix.os }}
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
- uses: actions-rs/toolchain@v1
46+
with:
47+
profile: minimal
48+
toolchain: ${{ matrix.rust-version }}
49+
override: true
50+
51+
- uses: actions-rs/cargo@v1
52+
with:
53+
command: test
54+
55+
cargo-rustdoc:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v1
59+
60+
- uses: actions-rs/toolchain@v1
61+
with:
62+
toolchain: nightly
63+
profile: minimal
64+
override: true
65+
66+
- uses: actions-rs/cargo@v1
67+
with:
68+
command: rustdoc
69+
args: -- -D intra-doc-link-resolution-failure

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

.rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wrap_comments = true

0 commit comments

Comments
 (0)