Skip to content

Commit

Permalink
cleanup interface and build
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
  • Loading branch information
dhuseby committed Dec 2, 2023
1 parent e955bf5 commit 6be512e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
[package]
name = "multitrait"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
authors = ["Dave Huseby <dwh@linuxprogrammer.org>"]
description = "Multiformat traits"
description = "Common traits for multiformats types"
repository = "https://github.com/cryptidtech/multitrait.git"
readme = "README.md"
license = "Apache-2.0"

[features]
default = ["std"]
std = ["unsigned-varint/std"]

[dependencies]
thiserror = "1.0"
unsigned-varint = { version = "0.8", features = ["std"] }
thiserror = { version = "1.0", default-features = false }
unsigned-varint = { version = "0.8", default-features = false }
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# multiutil
Helpful traits and functions common to multi* types.
# Multitrait
Helpful traits and functions common to multicodec types.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use thiserror::Error;

/// Errors generated by the numeric type impls
#[derive(Clone, Debug, Error, PartialEq)]
#[derive(Clone, Debug, Eq, Error, PartialEq)]
#[non_exhaustive]
pub enum Error {
/// an unsigned-varint error
Expand Down
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
//! # Multiutil
//!
//! A set of traits that are helpful for implementing
//! [multiformats](https://github.com/multiformats/multiformats) types in Rust.
#![warn(missing_docs)]
#![deny(
trivial_casts,
trivial_numeric_casts,
unused_import_braces,
unused_qualifications
)]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(not(feature = "std"))]
extern crate alloc;

#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

/// Errors generated from the implementations
pub mod error;
Expand Down

0 comments on commit 6be512e

Please sign in to comment.