4 releases

0.7.4 Sep 14, 2023
0.7.2 Sep 7, 2023
0.7.0 Jul 16, 2023
0.6.0 Mar 5, 2023

#1974 in Procedural macros

33 downloads per month
Used in airone


909 lines


This procmacro library serves as a tool for the airone library. It generates getter and setter fields of the structs it's derived on.

It also features a c feature, which generates C header files to use airone inside C projects.

The library is part of airone and the same airone license applies; airone_derive appears on crates.io as a separate crate for technical reasons.

Copyright and Licensing

Copyright © 2022,2023 Massimo Gismondi

Airone is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.


~18K SLoC