Commit aba68088 authored by Ian Jackson's avatar Ian Jackson
Browse files

Introduce tor-basic-utils

Empty crate right now
parent 64cc5b85
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3070,6 +3070,13 @@ dependencies = [
 "serde",
]

[[package]]
name = "tor-basic-utils"
version = "0.1.0"
dependencies = [
 "educe",
]

[[package]]
name = "tor-bytes"
version = "0.1.0"
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
# Please keep this list toplogically sorted by dependency relation, so
# that every crate appears _before_ any other crate that depends on it.
members = [
    "crates/tor-basic-utils",
    "crates/caret",
    "crates/retry-error",
    "crates/tor-error",
+16 −0
Original line number Diff line number Diff line
[package]
name = "tor-basic-utils"
version = "0.1.0"
authors = ["The Tor Project, Inc.", "Nick Mathewson <nickm@torproject.org>"]
edition = "2018"
license = "MIT OR Apache-2.0"
homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home"
description = "General helpers used by Tor"
keywords = ["tor", "arti"]
categories = ["rust-patterns"] # We must put *something* here and this will do
repository = "https://gitlab.torproject.org/tpo/core/arti.git/"

[dependencies]

[dev-dependencies]
educe = "0.4.6"
+10 −0
Original line number Diff line number Diff line
`tor-basic-utils`: Utilities (low-level) for Tor

Miscellaneous utilities for `tor-*` and `arti-*`.

This crate lives at the *bottom* of the Tor crate stack.
So it contains only utilities which have no `tor-*` (or `arti-*`) dependencies.

There is no particular theme.
More substantial sets of functionality with particular themes
are to be found in other `tor-*` crates.
+30 −0
Original line number Diff line number Diff line
#![doc = include_str!("../README.md")]
#![deny(missing_docs)]
#![warn(noop_method_call)]
#![deny(unreachable_pub)]
#![warn(clippy::all)]
#![deny(clippy::await_holding_lock)]
#![deny(clippy::cargo_common_metadata)]
#![deny(clippy::cast_lossless)]
#![deny(clippy::checked_conversions)]
#![warn(clippy::cognitive_complexity)]
#![deny(clippy::debug_assert_with_mut_call)]
#![deny(clippy::exhaustive_enums)]
#![deny(clippy::exhaustive_structs)]
#![deny(clippy::expl_impl_clone_on_copy)]
#![deny(clippy::fallible_impl_from)]
#![deny(clippy::implicit_clone)]
#![deny(clippy::large_stack_arrays)]
#![warn(clippy::manual_ok_or)]
#![deny(clippy::missing_docs_in_private_items)]
#![deny(clippy::missing_panics_doc)]
#![warn(clippy::needless_borrow)]
#![warn(clippy::needless_pass_by_value)]
#![warn(clippy::option_option)]
#![warn(clippy::rc_buffer)]
#![deny(clippy::ref_option_ref)]
#![warn(clippy::semicolon_if_nothing_returned)]
#![warn(clippy::trait_duplication_in_bounds)]
#![deny(clippy::unnecessary_wraps)]
#![warn(clippy::unseparated_literal_suffix)]
#![deny(clippy::unwrap_used)]