-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split repo into tulsa and example-app (#7)
* Initial commit for repo split * Update rust.yml
- Loading branch information
1 parent
8c4fc40
commit a645876
Showing
19 changed files
with
54 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,11 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- name: Setup protoc | ||
uses: arduino/[email protected] | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- name: Build tulsa | ||
run: cd tulsa && cargo build --verbose | ||
- name: Test tulsa | ||
run: cd tulsa && cargo test --verbose | ||
- name: Build example-app | ||
run: cd example-app && cargo build --verbose | ||
- name: Test example-app | ||
run: cd example-app && cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,3 @@ | ||
# gtfs-realtime-rust | ||
# tulsa | ||
|
||
This is a Rust learning exercise to build a REST server that dynamically launches and manages a set of async tasks. These tasks fetch a GTFS-Realtime feed from an endpoint supplied during a POST call. | ||
|
||
## Running Locally | ||
``` | ||
cargo test | ||
cargo run | ||
``` | ||
|
||
## Sample Feed | ||
``` | ||
{ | ||
"name": "MTA A Division", | ||
"frequency": 30, | ||
"url": "https://api-endint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs", | ||
"headers": { | ||
"x-api-key": "<key_goes_here>" | ||
} | ||
} | ||
``` | ||
Learning Rust by building a scheduler for both async and sync tasks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# gtfs-realtime-rust | ||
|
||
This is a Rust learning exercise to build a REST server that dynamically launches and manages a set of async tasks. These tasks fetch a GTFS-Realtime feed from an endpoint supplied during a POST call. | ||
|
||
## Running Locally | ||
``` | ||
cargo test | ||
cargo run | ||
``` | ||
|
||
## Sample Feed | ||
``` | ||
{ | ||
"name": "MTA A Division", | ||
"frequency": 30, | ||
"url": "https://api-endint.mta.info/Dataservice/mtagtfsfeeds/nyct%2Fgtfs", | ||
"headers": { | ||
"x-api-key": "<key_goes_here>" | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
extern crate prost_build; | ||
|
||
// Helpful example from: https://github.com/danburkert/snazzy | ||
fn main() { | ||
prost_build::compile_protos(&["src/gtfs-realtime.proto"], &["src/"]).unwrap(); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "tulsa" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
tokio = { version = "1.29.1", features = ["macros", "time", "rt-multi-thread"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub mod model; | ||
pub mod scheduler; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters