dusk_forge/lib.rs
1//! `dusk-forge` is a smart contract development framework designed to simplify the development of
2//! smart contracts for the Dusk virtual machine. It provides macros to
3//! automatically generate the boilerplate code required for interfacing smart
4//! contracts with the Dusk VM.
5
6#![feature(proc_macro_quote)]
7#![no_std]
8extern crate alloc;
9extern crate proc_macro;
10
11mod contract;
12
13/// Procedural macro for the `#[dusk_forge::contract]` attribute.
14#[proc_macro_attribute]
15pub fn contract(
16 attr: proc_macro::TokenStream,
17 item: proc_macro::TokenStream,
18) -> proc_macro::TokenStream {
19 contract::expand_contract(attr, item)
20}