Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.40.0"
authors = ["Tristram Gräbener <[email protected]>", "Antoine Desbordes <[email protected]>"]
repository = "https://github.com/rust-transit/gtfs-structure"
license = "MIT"
edition = "2018"
edition = "2021"

[features]
default = ["read-url"]
Expand All @@ -15,6 +15,7 @@ read-url = ["reqwest", "futures"]
bytes = "1"
csv = "1.1"
derivative = "2.1"
language-tags = {version = "0.3.2", features = ["serde"]}
serde = {version = "1.0", features = ["rc"]}
serde_derive = "1.0"
chrono = "0.4"
Expand Down
1 change: 1 addition & 0 deletions examples/reading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fn main() {
match gtfs {
Ok(g) => {
g.print_stats();
let (_, stop) = g.stops.iter().next().unwrap();
}
Err(e) => eprintln!("error: {e:?}"),
}
Expand Down
3 changes: 3 additions & 0 deletions fixtures/basic/translations.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table_name,field_name,language,translation,field_value,record_id,record_sub_id
stops,stop_name,nl,Stop Gebied,,stop1,
stops,stop_name,fr,Arrêt Région,"Stop Area",,
Loading