Skip to content

Commit ecab370

Browse files
committed
change crate name
1 parent cc40d3e commit ecab370

File tree

14 files changed

+48
-43
lines changed

14 files changed

+48
-43
lines changed

Cargo.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[package]
2-
name = "adif"
2+
name = "difa"
33
version = "0.1.0"
44
edition = "2024"
55
authors = ["Sidney Cammeresi <sac@cheesecake.org>"]
66
license = "BSD-3-Clause"
77
readme = "README.md"
88
description = "Parsing of Amateur Data Interchange Format (ADIF) files"
99
repository = "https://github.com/cammeresi/adif.git"
10+
keywords = ["hamradio"]
11+
categories = ["encoding", "parser-implementations"]
1012

1113
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1214

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ ADIF is a standard data format used by ham radio operators to exchange
1212
information logged about past contacts. This crate provides a few ways to
1313
parse ADIF data in Rust on top of tokio.
1414

15+
If DIFA needs to stand for something, it stands for Data Interchange Format for
16+
Amateurs.
17+
1518
[adif]: https://adif.org/
1619

1720
## Usage
1821

1922
Add the dependency:
2023

2124
```sh
22-
cargo add TBD
25+
cargo add difa
2326
```
2427

2528
Then start reading ADIF from any object that implements the AsyncRead trait:
2629

2730
```rust
28-
use adif::RecordStream;
31+
use difa::RecordStream;
2932
use futures::StreamExt;
3033
use tokio::{fs::File, io::BufReader};
3134

benches/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use adif::{OutputTypes, Record, RecordSink};
21
use chrono::{Days, NaiveDate, NaiveTime};
2+
use difa::{OutputTypes, Record, RecordSink};
33
use futures::SinkExt;
44
use rust_decimal::Decimal;
55
use std::str::FromStr;

benches/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use adif::RecordStream;
21
use criterion::{Criterion, Throughput, criterion_group, criterion_main};
2+
use difa::RecordStream;
33
use futures::StreamExt;
44
use std::hint::black_box;
55

examples/file_input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use adif::RecordStream;
1+
use difa::RecordStream;
22
use futures::StreamExt;
33
use tokio::fs::File;
44
use tokio::io::BufReader;

examples/parse.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use adif::{NormalizeExt, RecordStream};
1+
use difa::{NormalizeExt, RecordStream};
22
use futures::StreamExt;
33
use rust_decimal::prelude::*;
44

examples/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use adif::{Datum, OutputTypes, Record, RecordSink};
1+
use difa::{Datum, OutputTypes, Record, RecordSink};
22
use futures::SinkExt;
33
use rust_decimal::Decimal;
44
use std::str::FromStr;

src/cabrillo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ where
116116
/// typed data according to the format.
117117
///
118118
/// ```
119-
/// use adif::{CabrilloSink, Record};
119+
/// use difa::{CabrilloSink, Record};
120120
/// use futures::SinkExt;
121121
///
122122
/// # #[tokio::main(flavor = "current_thread")]

src/filter/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ impl<S> FilterExt for S where S: Stream {}
106106
/// components. Handle date crossing when time_off is earlier than time_on.
107107
///
108108
/// ```
109-
/// use adif::filter::normalize_times;
110-
/// use adif::{Datum, Record, RecordStreamExt, TagDecoder};
109+
/// use difa::filter::normalize_times;
110+
/// use difa::{Datum, Record, RecordStreamExt, TagDecoder};
111111
/// use chrono::{NaiveDate, NaiveTime, Timelike};
112112
/// use futures::StreamExt;
113113
///
@@ -202,7 +202,7 @@ where
202202
/// Normalize band field to uppercase.
203203
///
204204
/// ```
205-
/// use adif::{
205+
/// use difa::{
206206
/// Record, RecordStreamExt, TagDecoder, filter::normalize_band,
207207
/// };
208208
/// use futures::StreamExt;
@@ -262,7 +262,7 @@ where
262262
/// Exclude header records from the stream.
263263
///
264264
/// ```
265-
/// use adif::{
265+
/// use difa::{
266266
/// Record, RecordStreamExt, TagDecoder, filter::exclude_header,
267267
/// };
268268
/// use futures::StreamExt;

0 commit comments

Comments
 (0)