From 947a528656a71ddaa31066f816151a6a6e4c47e7 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 18 Dec 2020 10:18:21 +0800 Subject: [PATCH] libnac3 -> nac3core --- Cargo.lock | 22 +++++++++++----------- Cargo.toml | 2 +- {libnac3 => nac3core}/Cargo.toml | 2 +- {libnac3 => nac3core}/src/lib.rs | 0 nac3standalone/Cargo.toml | 2 +- nac3standalone/src/main.rs | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) rename {libnac3 => nac3core}/Cargo.toml (94%) rename {libnac3 => nac3core}/src/lib.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 19236dd8..3f2d08fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -408,16 +408,6 @@ version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" -[[package]] -name = "libnac3" -version = "0.1.0" -dependencies = [ - "inkwell", - "num-bigint", - "num-traits", - "rustpython-parser", -] - [[package]] name = "llvm-sys" version = "100.2.0" @@ -455,6 +445,16 @@ version = "2.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" +[[package]] +name = "nac3core" +version = "0.1.0" +dependencies = [ + "inkwell", + "num-bigint", + "num-traits", + "rustpython-parser", +] + [[package]] name = "nac3embedded" version = "0.1.0" @@ -467,7 +467,7 @@ name = "nac3standalone" version = "0.1.0" dependencies = [ "inkwell", - "libnac3", + "nac3core", "rustpython-parser", ] diff --git a/Cargo.toml b/Cargo.toml index 5e2d91d2..938324ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] members = [ - "libnac3", + "nac3core", "nac3standalone", "nac3embedded", ] diff --git a/libnac3/Cargo.toml b/nac3core/Cargo.toml similarity index 94% rename from libnac3/Cargo.toml rename to nac3core/Cargo.toml index 86d5842e..62af7c29 100644 --- a/libnac3/Cargo.toml +++ b/nac3core/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "libnac3" +name = "nac3core" version = "0.1.0" authors = ["M-Labs"] edition = "2018" diff --git a/libnac3/src/lib.rs b/nac3core/src/lib.rs similarity index 100% rename from libnac3/src/lib.rs rename to nac3core/src/lib.rs diff --git a/nac3standalone/Cargo.toml b/nac3standalone/Cargo.toml index 6dc0fc63..600ee138 100644 --- a/nac3standalone/Cargo.toml +++ b/nac3standalone/Cargo.toml @@ -7,4 +7,4 @@ edition = "2018" [dependencies] inkwell = { git = "https://github.com/TheDan64/inkwell", branch = "master", features = ["llvm10-0"] } rustpython-parser = { git = "https://github.com/RustPython/RustPython", branch = "master" } -libnac3 = { path = "../libnac3" } +nac3core = { path = "../nac3core" } diff --git a/nac3standalone/src/main.rs b/nac3standalone/src/main.rs index a2a80c29..bd24df38 100644 --- a/nac3standalone/src/main.rs +++ b/nac3standalone/src/main.rs @@ -4,7 +4,7 @@ use inkwell::context::Context; use inkwell::targets::*; use rustpython_parser::parser; -use libnac3::CodeGen; +use nac3core::CodeGen; fn main() {