A library for Morse code implementation in Rust.
The following instructions will explain how to get any machine up-and-running for Rust and how to subsequently implement the library into a project.
In order to run Rust on a local machine, the language has to be installed. A detailed description of how that is done, can be found on the official Rust page.
Add this to your Cargo.toml
:
[dependencies]
light-morse = "0.2.0"
and this to your crate root:
extern crate light_morse;
use light_morse::*;
Enter the light-morse repository and run: cargo test --verbose
This is a full-functioning Telegram, playing sounds for the word(s) one writes.
- Go into the /examples/telegram directory.
- Run
telegram --message "[MESSAGE]" --morse-type "ITU, Gerke or Morse"
.
Note: telegram
is cargo run --
- clap - Command Line Argument Parser
- ears - Play sounds and music
- itertools - Extra iterator adaptors, functions and macros
Cut as needed, originals by soundsnap.
Everything regarding how to build upon light-morse.
A substitution method can be added, as long as it looks like the following:
fn name(chr: PlainChunk) -> MorseChunk { /* Substitution for chars */ }
- PlainChunk: char
- MorseChunk: String
SemVer applies for versioning. For the versions available, see the crate.
- Lukas Mueller - Initial Work
The topic for this library was inspired by the morse iOS application of Ilias Ennmouri.