(define-module (gnu packages crates-io) #:use-module (guix build-system cargo) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages)) (define-public rust-hello-cli (package (name "rust-hello-cli") (version "0.2.2") (source (origin (method url-fetch) (uri (crate-uri "hello-cli" version)) (file-name (string-append name "-" version ".crate")) (sha256 (base32 "0qilj9b94ig7z160kazk41k2iy1hprdk5qwaym4fnf5x9fiksild")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-clap" ,rust-clap)))) (home-page "https://github.com/fpoli/rust-hello-cli") (synopsis "Prints a nice 'Hello World!' message") (description "Prints a nice 'Hello World!' message") (license license:expat))) (define-public rust-clap (package (name "rust-clap") (version "2.33.0") (source (origin (method url-fetch) (uri (crate-uri "clap" version)) (file-name (string-append name "-" version ".crate")) (sha256 (base32 "1nf6ld3bims1n5vfzhkvcb55pdzh04bbhzf8nil5vvw05nxzarsh")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags) ("rust-textwrap" ,rust-textwrap) ("rust-unicode-width" ,rust-unicode-width)))) (home-page "https://clap.rs/") (synopsis "A simple to use, efficient, and full-featured Command Line Argument Parser ") (description "This package provides a simple to use, efficient, and full-featured Command Line Argument Parser ") (license license:expat))) (define-public rust-bitflags (package (name "rust-bitflags") (version "1.2.1") (source (origin (method url-fetch) (uri (crate-uri "bitflags" version)) (file-name (string-append name "-" version ".crate")) (sha256 (base32 "14qnd5nq8p2almk79m4m8ydqhd413yaxsyjp5xd19g3mikzf47fg")))) (build-system cargo-build-system) (home-page "https://github.com/bitflags/bitflags") (synopsis "A macro to generate structures which behave like bitflags. ") (description "This package provides a macro to generate structures which behave like bitflags. ") (license #f))) (define-public rust-textwrap (package (name "rust-textwrap") (version "0.11.0") (source (origin (method url-fetch) (uri (crate-uri "textwrap" version)) (file-name (string-append name "-" version ".crate")) (sha256 (base32 "0q5hky03ik3y50s9sz25r438bc4nwhqc6dqwynv4wylc807n29nk")))) (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-unicode-width" ,rust-unicode-width)))) (home-page "https://github.com/mgeisler/textwrap") (synopsis "Textwrap is a small library for word wrapping, indenting, and dedenting strings. You can use it to format strings (such as help and error messages) for display in commandline applications. It is designed to be efficient and handle Unicode characters correctly. ") (description "Textwrap is a small library for word wrapping, indenting, and dedenting strings. You can use it to format strings (such as help and error messages) for display in commandline applications. It is designed to be efficient and handle Unicode characters correctly. ") (license license:expat))) (define-public rust-unicode-width (package (name "rust-unicode-width") (version "0.1.6") (source (origin (method url-fetch) (uri (crate-uri "unicode-width" version)) (file-name (string-append name "-" version ".crate")) (sha256 (base32 "082f9hv1r3gcd1xl33whjhrm18p0w9i77zhhhkiccb5r47adn1vh")))) (build-system cargo-build-system) (home-page "https://github.com/unicode-rs/unicode-width") (synopsis "Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules. ") (description "Determine displayed width of `char` and `str` types according to Unicode Standard Annex #11 rules. ") (license #f))) rust-hello-cli