← Files Meetings (Beta)ARCHIVED FILE

native/windows-arm64/THIRD_PARTY_LICENSES/licenses/hex-0.4.3-c19b7c6f92/SOURCE_NOTICES.txt

1.33 KB · Oct 8, 2026 · 12:02 UTC

↓ Download file

Source-file copyright and license notices, preserved verbatim.

===== src/lib.rs (source SHA-256 bc16c851822629225d2d2653ea080f131b0f2c4704d3ff27fed955c9b8b42f71) =====
// Copyright (c) 2013-2014 The Rust Project Developers.
// Copyright (c) 2015-2020 The rust-hex Developers.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! Encoding and decoding hex strings.
//!
//! For most cases, you can simply use the [`decode`], [`encode`] and
//! [`encode_upper`] functions. If you need a bit more control, use the traits
//! [`ToHex`] and [`FromHex`] instead.
//!
//! # Example
//!
//! ```
//! # #[cfg(not(feature = "alloc"))]
//! # let mut output = [0; 0x18];
//! #
//! # #[cfg(not(feature = "alloc"))]
//! # hex::encode_to_slice(b"Hello world!", &mut output).unwrap();
//! #
//! # #[cfg(not(feature = "alloc"))]
//! # let hex_string = ::core::str::from_utf8(&output).unwrap();
//! #
//! # #[cfg(feature = "alloc")]
//! let hex_string = hex::encode("Hello world!");
//!
//! println!("{}", hex_string); // Prints "48656c6c6f20776f726c6421"
//!
//! # assert_eq!(hex_string, "48656c6c6f20776f726c6421");
//! ```

SHA-256: 0441f962caf4aadee65690016c5d047f8a7d1c245c8dbb0c98f4f1b49efef684