Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyBanks committed Feb 26, 2020
1 parent f36a966 commit fa6d92c
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 361 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/actions.yaml
Expand Up @@ -26,7 +26,12 @@ jobs:
git config user.name "$(git log -1 --pretty=format:'%an')"
git config user.email "$(git log -1 --pretty=format:'%ae')"
- name: setup - install rust toolchain
- name: setup - install nightly rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly

- name: setup - install chosen rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.env.outputs.rust }}
Expand Down Expand Up @@ -73,6 +78,9 @@ jobs:
- name: test - lint
run: yarn lint

- name: test - unused cargo dependencioes
run: cargo +nightly udep

- name: publish - add `master` to `deploy` first-parent chain if we made it this far
if: github.ref == 'refs/heads/master'
env:
Expand Down
120 changes: 12 additions & 108 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 1 addition & 30 deletions Cargo.toml
Expand Up @@ -22,40 +22,11 @@ name = "speedruns"
path = "src/bin/speedruns.rs"

[dependencies]
actix = "0.9.0"
actix-cors = "0.2.0"
actix-rt = "1.0.0"
actix-web = "2.0.0"
argh = "0.1.3"
async-std = "1.5.0"
base64 = "0.11.0"
chrono = { features = ["serde"], version = "0.4.10" }
derive_more = "0.99.3"
env_logger = "0.7.1"
err-derive = "0.1.6,<0.2"
flate2 = "1.0.13"
getset = "0.1.0"
itertools = "0.8.2"
juniper = "0.14.2"
juniper-from-schema = "0.5.2"
lazy_static = "1.4.0"
libc = "0.2.67"
log = "0.4.8"
pretty_env_logger = "0.4.0"
rand = "0.7.3"
regex = "1.3.4"
reqwest = "0.9.24,<0.10"
serde = { features = ["derive"], version = "1.0.104" }
serde_derive = "1.0.104"
serde_json = "1.0.48"
async-std = { version = "1.5.0", features = ["attributes"] }
speedruns_api = { path = "src/lib/api", version = "0.21.6-dev" }
speedruns_cli = { path = "src/lib/cli", version = "0.21.6-dev" }
speedruns_database = { path = "src/lib/database", version = "0.21.6-dev" }
speedruns_juniper = { path = "src/lib/juniper", version = "0.21.6-dev" }
speedruns_models = { path = "src/lib/models", version = "0.21.6-dev" }
speedruns_utils = { path = "src/lib/utils", version = "0.21.6-dev" }
tempfile = "3.1.0"
unidecode = "0.3.0"
validator = "0.10.0"
validator_derive = "0.10.0"
rental = "0.5.5"
26 changes: 17 additions & 9 deletions README.md
Expand Up @@ -3,22 +3,24 @@
Unofficial tools for mirroring [speedrun.com](https://www.speedrun.com/) API
data. Using Rust, TypeScript, GraphQL, and React.

Live at [speedruns.ca](https://speedruns.ca).

## Legal

### Disclosure

This project is not associated with or endorsed by speedrun.com.

### Code License

Copyright Jeremy Banks, released under [the MIT License](LICENSE).

### Content License

See <https://www.speedrun.com/legal> for details. All data is from speedrun.com
contributors, and is used and distributed under the Creative Commons
Attribution-NonCommercial 4.0 International license.

### Code License

Copyright Jeremy Banks, released under [the MIT License](LICENSE).

## Development

### Environment
Expand Down Expand Up @@ -61,7 +63,7 @@ time).
Download any new data by running:

```
cargo run download
cargo run api download
```

This can take a long time (potentially a full day if you're starting from
Expand All @@ -73,7 +75,7 @@ Validate and convert the downloaded API data into our internal format by
running:

```
cargo run import
cargo run api import
```

Any records that don't match our expected format (missing now-required fields,
Expand All @@ -83,10 +85,16 @@ robustly accomidates old data of varied shapes).

Restart the server to load the new data.

## `speedruns` crate structure
## Installation

`cargo install speedruns` to install or update `speedruns`.

`npm install --global speedruns` to install or update `speedruns-frontened`.

## Crate structure

Interface probably won't be stable until 1.0.0. This is being developed as a
service first, a library second.
The `speedruns` interface probably won't be stable until 1.0.0. This is being
developed as a service first, a library second.

### `::utils` (crate: `speedruns_utils`)

Expand Down
2 changes: 1 addition & 1 deletion src/bin/speedruns.rs
@@ -1,4 +1,4 @@
#[actix_rt::main]
#[async_std::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
speedruns_cli::main().await
}

0 comments on commit fa6d92c

Please sign in to comment.