cbor: rename crate to sk-cbor

In anticipation of publishing to crates.io, which already has a `cbor`
crate.
This commit is contained in:
David Drysdale
2021-06-08 11:26:24 +01:00
committed by kaczmarczyck
parent f2812e4fe2
commit 7719078d46
15 changed files with 26 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
[package]
name = "cbor"
name = "sk-cbor"
version = "0.1.0"
authors = [
"Fabian Kaczmarczyck <kaczmarczyck@google.com>",

View File

@@ -1,6 +1,6 @@
[package]
name = "cbor-fuzz"
name = "sk-cbor-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
@@ -12,7 +12,7 @@ cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"
[dependencies.cbor]
[dependencies.sk-cbor]
path = ".."
# Prevent this from interfering with workspaces

View File

@@ -3,6 +3,7 @@ extern crate alloc;
use alloc::vec::Vec;
use libfuzzer_sys::fuzz_target;
use sk_cbor as cbor;
fuzz_target!(|data: &[u8]| {
if let Ok(value) = cbor::read(data) {

View File

@@ -36,7 +36,7 @@ use core::iter::Peekable;
///
/// ```rust
/// # extern crate alloc;
/// # use cbor::destructure_cbor_map;
/// # use sk_cbor::destructure_cbor_map;
/// #
/// # fn main() {
/// # let map = alloc::vec::Vec::new();
@@ -143,7 +143,7 @@ macro_rules! assert_sorted_keys {
///
/// ```rust
/// # extern crate alloc;
/// # use cbor::cbor_map;
/// # use sk_cbor::cbor_map;
/// let map = cbor_map! {
/// 0x01 => false,
/// "02" => -3,
@@ -182,7 +182,7 @@ macro_rules! cbor_map {
///
/// ```rust
/// # extern crate alloc;
/// # use cbor::cbor_map_options;
/// # use sk_cbor::cbor_map_options;
/// let missing_value: Option<bool> = None;
/// let map = cbor_map_options! {
/// 0x01 => Some(false),
@@ -232,7 +232,7 @@ macro_rules! cbor_map_collection {
///
/// ```rust
/// # extern crate alloc;
/// # use cbor::cbor_array;
/// # use sk_cbor::cbor_array;
/// let array = cbor_array![1, "2"];
/// ```
#[macro_export]
@@ -339,7 +339,7 @@ macro_rules! cbor_bytes {
///
/// ```rust
/// # extern crate alloc;
/// # use cbor::cbor_bytes_lit;
/// # use sk_cbor::cbor_bytes_lit;
/// let byte_array = cbor_bytes_lit!(b"foo");
/// ```
#[macro_export]