Subject: [bug#49398] [PATCH 16/21] gnu: Add rust-eui48-0.4

From: Xinglu Chen <[email-masked]>
Date: Sun, 11 Jul 2021 11:15:07 +0200

On Sun, Jul 04 2021, Domagoj Stolfa wrote:

> * gnu/packages/crates-io.scm (rust-eui48-0.4): New public variable.
> ---
>  gnu/packages/crates-io.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
> index 2fa1b00228..bd8778921d 100644
> --- a/gnu/packages/crates-io.scm
> +++ b/gnu/packages/crates-io.scm
> @@ -15168,6 +15168,39 @@ deserialized from environment variables.")
>         (("rust-serde" ,rust-serde-1)
>          ("rust-serde-json" ,rust-serde-json-1))))))
>  
> +(define-public rust-eui48-0.4
> +  (package
> +    (name "rust-eui48")
> +    (version "0.4.6")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (crate-uri "eui48" version))
> +        (file-name
> +          (string-append name "-" version ".tar.gz"))
> +        (sha256
> +          (base32
> +            "0sqbmcnvilanzjagknmpf85pnji2b9hn2pqzd5rygrfkwikghk4c"))))
> +    (build-system cargo-build-system)
> +    (arguments
> +      `(#:cargo-inputs
> +        (("rust-rustc-serialize"
> +          ,rust-rustc-serialize-0.3)
> +         ("rust-serde" ,rust-serde-1)
> +         ("rust-serde-json" ,rust-serde-json-1))))
> +    (home-page "https://github.com/abaumhauer/eui48")
> +    (synopsis
> +      "A library to generate and parse IEEE EUI-48 and EUI-64, also known as MAC-48 media access
> +control addresses. The IEEE claims trademarks on the names EUI-48 and EUI-64, in which EUI is an
> +abbreviation for Extended Unique Identifier.
> +")

The synopsis is way too long, maybe something like:

  Rust implementation of IEEE EUI-48 datatype
  
> +    (description
> +      "This package provides a library to generate and parse IEEE EUI-48 and EUI-64, also known as MAC-48 media access
> +control addresses.  The IEEE claims trademarks on the names EUI-48 and EUI-64, in which EUI is an
> +abbreviation for Extended Unique Identifier.

Line break at 80 characters.

I don’t feel like the second sentence is that relevant to this package,
probably better to drop it.