Skip to content

Commit

Permalink
use workspace for proc macros
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Oct 28, 2024
1 parent a695206 commit ca10deb
Show file tree
Hide file tree
Showing 8 changed files with 2,247 additions and 20 deletions.
29 changes: 19 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
[package]
authors = ["NLnet Labs <[email protected]>"]
categories = ["network-programming"]
description = "A library for storing and retrieving IP Prefixes"
documentation = "https://docs.rs/rotonda/"
edition = "2021"
homepage = "https://nlnetlabs.nl/projects/routing/rotonda/"
keywords = ["routing", "bgp"]
license = "BSD-3-Clause"
name = "rotonda-store"
# version = "0.4.0-rc1"
repository = "https://github.com/NLnetLabs/rotonda-store/"
version.workspace = true
edition.workspace = true
authors.workspace = true
rust-version.workspace = true
license.workspace = true

[workspace]
members = ["proc_macros"]

[workspace.package]
version = "0.4.0-rc0"
rust-version = "1.71"
edition = "2021"
authors = ["NLnet Labs <[email protected]>"]
license = "BSD-3-Clause"
rust-version = "1.80"

[dependencies]
crossbeam-epoch = "^0.9"
crossbeam-utils = "^0.8"
#flurry = "0.5.1"
inetnum = "0.1.0"
log = "^0.4"

inetnum = "0.1.0"
log = "^0.4"
roaring = "0.10.3"
# rotonda-macros = { version = "0.4.0-rc0" }
# rotonda-macros = { path = "../rotonda-macros" }
rotonda-macros = { git = "https://github.com/nlnetlabs/rotonda-macros", branch = "main" }
rotonda-macros = { path = "proc_macros", version = "0.4.0-rc1" }
routecore = { version = "0.5.0-rc1", features = ["bgp", "bmp", "fsm", "serde"] }

ansi_term = { version = "0.12", optional = true }
Expand Down
19 changes: 19 additions & 0 deletions proc_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "rotonda-macros"
categories = ["network-programming"]
description = "Procedural macros for the rotonda-store prefix store"
homepage = "https://nlnetlabs.nl/projects/routing/rotonda/"
repository = "https://github.com/NLnetLabs/rotonda-macros"
keywords = ["routing", "bgp"]
edition.workspace = true
version.workspace = true
authors.workspace = true
rust-version.workspace = true
license.workspace = true

[lib]
proc-macro = true

[dependencies]
syn = {version = "^2", features = ["proc-macro", "full", "parsing", "printing"] }
quote = "^1"
41 changes: 41 additions & 0 deletions proc_macros/Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Change Log

## Unreleased Version

Released xxxx-xx-xx.

Breaking Changes

New

Other Changes

## 0.4.0-rc0

Released 2024-06-12.

Breaking Changes

* remove MergeUpdate trait

New

* public API for best and backup path selection.
* public API for searching and iterating paths for multi_uniq_ids.
* public API for modifying local and global multi_uniq_ids ('mui').

## 0.3.1

Released 2021-03-25.

Other Changes

* Use inetnum create for Prefix, instead of routecore.

## 0.1.1

Released 2021-06-29

First Release

* Meant to be used by rotonda-store < 0.3
30 changes: 30 additions & 0 deletions proc_macros/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Copyright (c) 2021, NLnet Labs. All rights reserved.

This software is open source.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

Neither the name of the NLNET LABS nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 changes: 24 additions & 0 deletions proc_macros/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# `rotonda-macros` – Procedural macros for Rotonda-store

This crate provides a few procedural macros for the `rotonda-store`.

`rotonda-store` is a part of the Rotonda project, a modular, analytical
BGP engine.

Read more about [Rotonda].

## Contributing

If you have comments, proposed changes, or would like to contribute,
please open an issue in the [GitHub repository]. In particular, if you
would like to use the crate but it is missing functionality for your use
case, we would love to hear from you!

[GitHub repository]: (https://github.com/NLnetLabs/rotonda-macros)
[Rotonda]: (https://github.com/NLnetLabs/rotonda)


## License

The _rotonda-macros_ crate is distributed under the terms of the BSD-3-clause license.
See LICENSE for details.
Loading

0 comments on commit ca10deb

Please sign in to comment.