Skip to content

Commit

Permalink
Preparing ligen-rust-explorer to start dev
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Sep 2, 2024
1 parent 6f26491 commit 430026f
Show file tree
Hide file tree
Showing 24 changed files with 18 additions and 142 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ members = [
"ecosystem/rust/pyo3-importer",
"ecosystem/rust/cargo",
"ecosystem/rust/example",
# "ecosystem/rust/exporter",
"ecosystem/rust/exporter",
# "ecosystem/rust/runtime",
"ecosystem/rust/parser",
# "ecosystem/c/cmake",
Expand Down
8 changes: 2 additions & 6 deletions ecosystem/rust/exporter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ edition.workspace = true
license.workspace = true

[dependencies]
ligen-ir.workspace = true
ligen-traits.workspace = true
ligen-utils.workspace = true
ligen-common.workspace = true
ligen-parsing.workspace = true
serde_json.workspace = true
ligen.workspace = true
serde_json.workspace = true

[dev-dependencies]
pretty_assertions.workspace = true
113 changes: 0 additions & 113 deletions ecosystem/rust/exporter/src/generator/exporter/mod.rs

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions ecosystem/rust/exporter/src/generator/mod.rs

This file was deleted.

3 changes: 0 additions & 3 deletions ecosystem/rust/exporter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
// TODO: Rework the exporter.

pub mod generator;
4 changes: 1 addition & 3 deletions ecosystem/rust/pyo3-importer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@ readme.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ligen-ir.workspace = true
ligen-generator.workspace = true
ligen-utils.workspace = true
ligen.workspace = true
is-tree.workspace = true
4 changes: 2 additions & 2 deletions ecosystem/rust/pyo3-importer/src/identifier/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::collections::HashSet;

use ligen_ir::Identifier;
use ligen_utils::mapper::LanguageMap;
use ligen::ir::Identifier;
use ligen::utils::mapper::LanguageMap;

pub struct IdentifierGenerator {
map: LanguageMap<Identifier>,
Expand Down
4 changes: 2 additions & 2 deletions ecosystem/rust/pyo3-importer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ pub mod type_;
pub use module::*;
use std::path::PathBuf;

use ligen_ir::{Library, Visitors};
use ligen::ir::{Library, Visitors};

use ligen_generator::file_generator::{FileGenerator, FileSet, Template};
use ligen::generator::file_generator::{FileGenerator, FileSet, Template};
use is_tree::{HasBranch, TreeIterator};


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

use ligen_generator::file_generator::FileSection;
use ligen_ir::{Function, Method, Identifier};
use ligen::generator::file_generator::FileSection;
use ligen::ir::{Function, Method, Identifier};

use crate::{prelude::*, type_::TypeGenerator, identifier::IdentifierGenerator};

Expand Down
4 changes: 2 additions & 2 deletions ecosystem/rust/pyo3-importer/src/module/interface/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pub use function::*;
pub use structure::*;

use is_tree::{HasBranch, Visitor};
use ligen_generator::file_generator::File;
use ligen_ir::{Module, Visitors};
use ligen::generator::file_generator::File;
use ligen::ir::{Module, Visitors};

#[derive(Default)]
pub struct InterfaceGenerator {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ligen_generator::file_generator::FileSection;
use ligen_ir::TypeDefinition;
use ligen::generator::file_generator::FileSection;
use ligen::ir::TypeDefinition;

pub use crate::prelude::*;

Expand Down
4 changes: 2 additions & 2 deletions ecosystem/rust/pyo3-importer/src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pub use interface::*;
use std::path::PathBuf;

use is_tree::{HasBranch, HasPath, Visitor};
use ligen_generator::file_generator::FileSet;
use ligen_ir::{Identifier, Library, Module, Path, Visibility, Visitors};
use ligen::generator::file_generator::FileSet;
use ligen::ir::{Identifier, Library, Module, Path, Visibility, Visitors};

#[derive(Default)]
pub struct ModuleGenerator {
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/rust/pyo3-importer/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub use ligen_generator::prelude::*;
pub use ligen::generator::prelude::*;
2 changes: 1 addition & 1 deletion ecosystem/rust/pyo3-importer/src/type_/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ligen_ir::Type;
use ligen::ir::Type;

use crate::identifier::IdentifierGenerator;

Expand Down

0 comments on commit 430026f

Please sign in to comment.