This commit is contained in:
femsci 2023-10-11 20:03:15 +02:00
commit fae83d66d1
Signed by: femsci
GPG key ID: 08F7911F0E650C67
8 changed files with 79 additions and 0 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
**/obj/
**/bin/
**/target/

7
Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "iris"
version = "0.1.0"

10
Cargo.toml Normal file
View file

@ -0,0 +1,10 @@
[package]
name = "iris"
version = "0.1.0"
edition = "2021"
[lib]
name = "iris"
path = "src/iris-rs/lib.rs"
[dependencies]

27
Iris.sln Normal file
View file

@ -0,0 +1,27 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{7C4C9FDB-9B96-4850-979E-03371D2458C9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nyanbyte.Iris", "src\Nyanbyte.Iris\Nyanbyte.Iris.csproj", "{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{47E9F3C2-66A9-4435-9DFE-75FED00CD9B9} = {7C4C9FDB-9B96-4850-979E-03371D2458C9}
EndGlobalSection
EndGlobal

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Iris
IRR data library

View file

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

5
src/iris-data/RIR.dat Normal file
View file

@ -0,0 +1,5 @@
ARIN
RIPE
LACNIC
APNIC
AFRINIC

14
src/iris-rs/lib.rs Normal file
View file

@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}