Add an external dependency to the docopt package and use it for a scaffold command line interface for the cton-util command. I am not too happy about taking external dependencies, and docopt pulls in 13 other packages. However, I really don't want to be writing command line parsers, and as long as the external dependencies are confined to the tools crate, we should be fine. The core cretonne crate should stay free of external dependencies to avoid trouble with embedding it. Implement a basic 'cat' subcommand which currently behaves like unix 'cat'. It will gain parser powers soon.
16 lines
409 B
Rust
16 lines
409 B
Rust
|
|
// ====------------------------------------------------------------------------------------==== //
|
|
//
|
|
// Cretonne code generation library.
|
|
//
|
|
// ====------------------------------------------------------------------------------------==== //
|
|
|
|
pub const VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
|
|
|
pub mod types;
|
|
pub mod immediates;
|
|
pub mod entities;
|
|
pub mod instructions;
|
|
pub mod repr;
|
|
pub mod write;
|