Skip to content

Commit

Permalink
Add Rocket skeleton with a route prototype
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ikalnytskyi committed Jul 22, 2020
0 parents commit f09b3d3
Show file tree
Hide file tree
Showing 11 changed files with 1,203 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Tests

on:
- pull_request
- push

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1

jobs:
cargo-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
override: true

- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

cargo-test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
rust-version:
- nightly

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust-version }}
override: true

- uses: actions-rs/cargo@v1
with:
command: test

cargo-rustdoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true

- uses: actions-rs/cargo@v1
with:
command: rustdoc
args: -- -D intra-doc-link-resolution-failure
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wrap_comments = true

0 comments on commit f09b3d3

Please sign in to comment.