commit fae83d66d1456ead04332787c89db4d8157d0dd8 Author: femsci Date: Wed Oct 11 20:03:15 2023 +0200 skeleton diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9367482 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +**/obj/ +**/bin/ +**/target/ + diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..7713dec --- /dev/null +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..16270bf --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "iris" +version = "0.1.0" +edition = "2021" + +[lib] +name = "iris" +path = "src/iris-rs/lib.rs" + +[dependencies] diff --git a/Iris.sln b/Iris.sln new file mode 100644 index 0000000..0a87427 --- /dev/null +++ b/Iris.sln @@ -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 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2e7c9ba --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Iris + +IRR data library diff --git a/src/Nyanbyte.Iris/Nyanbyte.Iris.csproj b/src/Nyanbyte.Iris/Nyanbyte.Iris.csproj new file mode 100644 index 0000000..cfadb03 --- /dev/null +++ b/src/Nyanbyte.Iris/Nyanbyte.Iris.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/src/iris-data/RIR.dat b/src/iris-data/RIR.dat new file mode 100644 index 0000000..384d8bf --- /dev/null +++ b/src/iris-data/RIR.dat @@ -0,0 +1,5 @@ +ARIN +RIPE +LACNIC +APNIC +AFRINIC diff --git a/src/iris-rs/lib.rs b/src/iris-rs/lib.rs new file mode 100644 index 0000000..7d12d9a --- /dev/null +++ b/src/iris-rs/lib.rs @@ -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); + } +}