Source code
Revision control
Copy as Markdown
Other Tools
// Copyright Mozilla Foundation
//
// Licensed under the Apache License (Version 2.0), or the MIT license,
// (the "Licenses") at your option. You may not use this file except in
// compliance with one of the Licenses. You may obtain copies of the
// Licenses at:
//
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the Licenses is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the Licenses for the specific language governing permissions and
// limitations under the Licenses.
#![no_std]
//! # `multiversion_no_op`
//!
//! This crate provides a pass-through function attribute called `multiversion`.
//!
//! The purpose of this crate is to optimize build times on targets that do not actually
//! need multiversioning. That is, targets that need multiversioning can use the real
//! not need multiversioning can use this crate instead.
//!
//! This crate works in the `no_std` context.
//!
//! ## License
//!
//! Apache-2.0 OR MIT; the file named `COPYRIGHT`.
//!
//! ## Usage
//!
use proc_macro::TokenStream;
#[proc_macro_attribute]
pub fn multiversion(_attr: TokenStream, item: TokenStream) -> TokenStream {
item
}