1
0
mirror of https://github.com/bspeice/qadapt synced 2025-07-03 14:54:59 -04:00

Mark everything deprecated

This commit is contained in:
2019-02-11 00:18:16 -05:00
parent 6ea3111e20
commit de852c819f
6 changed files with 72 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "qadapt-macro"
version = "1.0.2"
version = "1.0.3"
authors = ["Bradlee Speice <bradlee@speice.io>"]
description = "The Quick And Dirty Allocation Profiling Tool - Support Macros"
license = "Apache-2.0"
@ -16,7 +16,7 @@ repository = "https://github.com/bspeice/qadapt.git"
edition = "2018"
[badges]
maintenance = { status = "actively-developed" }
maintenance = { status = "deprecated" }
[lib]
proc-macro = true

View File

@ -5,5 +5,7 @@
Helper macro for the QADAPT allocator.
**Please note**: This crate has been deprecated in favor of [alloc-counter](https://crates.io/crates/alloc_counter)
This crate is intended for managing the QADAPT allocator,
and is unusable on its own.

View File

@ -1,5 +1,7 @@
//! Helper macros to use with the QADAPT allocator system
//!
//! **Please note**: This crate has been deprecated in favor of [alloc-counter](https://crates.io/crates/alloc_counter)
//!
//! This crate is intended for managing the QADAPT allocator,
//! and is unusable on its own.
//!
@ -155,6 +157,10 @@ fn escape_return(ts: TokenStream) -> TokenStream {
/// separate thread, or defers allocations via closure/Future, those results
/// will not trigger an error.
#[proc_macro_attribute]
#[deprecated(
since = "1.0.3",
note = "Please use the `alloc_counter` crate instead."
)]
pub fn no_alloc(_attr: TokenStream, item: TokenStream) -> TokenStream {
let mut protected_fn: Vec<TokenTree> = Vec::new();
let mut item_iter = item.into_iter();