Skip to content

Commit d5573db

Browse files
committed
rename to async-gcode as it fits better what it is (and gcode is already taken)
1 parent 644bcf8 commit d5573db

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[package]
2-
name = "gcode"
2+
name = "async-gcode"
33
version = "0.2.0"
44
authors = ["Wilfried Chauveau <[email protected]>"]
55
description = "An async gcode parser for no_std targets."
6-
license = "MIT License"
6+
keywords = ["async", "await", "gcode"]
7+
license = "MIT"
78
edition = "2018"
8-
repository = "https://github.com/ithinuel/gcode-rs"
9+
repository = "https://github.com/ithinuel/async-gcode"
10+
categories = ["asynchronous", "embedded", "no-std", "parsing"]
911

1012
[features]
1113
default = ["std"]

examples/cli.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@ use futures::stream;
22
use futures_executor::block_on;
33
use std::io::Read;
44

5-
use gcode::Parser;
6-
75
#[derive(Debug)]
86
enum Error {
97
Io(std::io::Error),
10-
Parse(gcode::Error),
8+
Parse(async_gcode::Error),
119
}
12-
impl From<gcode::Error> for Error {
13-
fn from(f: gcode::Error) -> Self {
10+
impl From<async_gcode::Error> for Error {
11+
fn from(f: async_gcode::Error) -> Self {
1412
Self::Parse(f)
1513
}
1614
}
1715
fn main() {
1816
block_on(async {
19-
let mut parser = Parser::new(stream::iter(
17+
let mut parser = async_gcode::Parser::new(stream::iter(
2018
std::io::stdin().bytes().map(|res| res.map_err(Error::Io)),
2119
));
2220

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//! ```
1414
//! use futures::stream;
1515
//! use futures_executor::block_on;
16-
//! use gcode::{Parser, Error};
16+
//! use async_gcode::{Parser, Error};
1717
//! let input = r"
1818
//! G21 H21. I21.098
1919
//! J-21 K-21. L-21.098

0 commit comments

Comments
 (0)