Skip to content

Commit

Permalink
rename to async-gcode as it fits better what it is (and gcode is alre…
Browse files Browse the repository at this point in the history
…ady taken)
  • Loading branch information
ithinuel committed Aug 15, 2020
1 parent 644bcf8 commit d5573db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
name = "gcode"
name = "async-gcode"
version = "0.2.0"
authors = ["Wilfried Chauveau <wilfried.chauveau@ithinuel.me>"]
description = "An async gcode parser for no_std targets."
license = "MIT License"
keywords = ["async", "await", "gcode"]
license = "MIT"
edition = "2018"
repository = "https://github.com/ithinuel/gcode-rs"
repository = "https://github.com/ithinuel/async-gcode"
categories = ["asynchronous", "embedded", "no-std", "parsing"]

[features]
default = ["std"]
Expand Down
10 changes: 4 additions & 6 deletions examples/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,19 @@ use futures::stream;
use futures_executor::block_on;
use std::io::Read;

use gcode::Parser;

#[derive(Debug)]
enum Error {
Io(std::io::Error),
Parse(gcode::Error),
Parse(async_gcode::Error),
}
impl From<gcode::Error> for Error {
fn from(f: gcode::Error) -> Self {
impl From<async_gcode::Error> for Error {
fn from(f: async_gcode::Error) -> Self {
Self::Parse(f)
}
}
fn main() {
block_on(async {
let mut parser = Parser::new(stream::iter(
let mut parser = async_gcode::Parser::new(stream::iter(
std::io::stdin().bytes().map(|res| res.map_err(Error::Io)),
));

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//! ```
//! use futures::stream;
//! use futures_executor::block_on;
//! use gcode::{Parser, Error};
//! use async_gcode::{Parser, Error};
//! let input = r"
//! G21 H21. I21.098
//! J-21 K-21. L-21.098
Expand Down

0 comments on commit d5573db

Please sign in to comment.