Skip to content

Commit 0314ed4

Browse files
authored
Merge pull request #6 from rtk-rs/submodule
Submodule
2 parents 36434a8 + 20b0944 commit 0314ed4

File tree

12 files changed

+20
-75
lines changed

12 files changed

+20
-75
lines changed

.github/workflows/daily.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ jobs:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v3
45+
with:
46+
submodules: recursive
47+
fetch-depth: 0
4548
- uses: actions-rs/toolchain@v1
4649
name: Install Rust
4750
with:

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
steps:
2020
- uses: actions/checkout@v3
21+
with:
22+
submodules: recursive
23+
fetch-depth: 0
2124
- name: Build
2225
run: cargo build
2326
- name: Build

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ Cargo.lock
1515

1616
*.swo
1717
*.swp
18-
data/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "data"]
2+
path = data
3+
url = https://github.com/rtk-rs/data

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "binex"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
license = "MPL-2.0"
55
authors = ["Guillaume W. Bres <guillaume.bressaix@gmail.com>"]
66
description = "BINEX (Binary EXchange) encoder and decoder for GNSS"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ that it cannot interprate:
4343

4444
```rust
4545
use std::fs::File;
46+
use flate2::read::GzDecoder;
4647
use binex::prelude::{Decoder, StreamElement, Provider, Error};
4748

48-
let fd = File::open("data/mfle20190130.bnx")
49+
let fd = File::open("data/BIN/mfle20200105.bnx.gz")
4950
.unwrap();
5051

51-
let mut decoder = Decoder::new(fd);
52+
let mut decoder = Decoder::new(GzDecoder::new(fd));
5253

5354
loop {
5455
match decoder.next() {

data

Submodule data added at fd998de

data/mfle20190130.bnx

-17 MB
Binary file not shown.

data/mfle20200105.bnx.gz

-12.6 MB
Binary file not shown.

data/mfle20200113.bnx.gz

-12.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)