Skip to content

Commit

Permalink
Renaming PythonExporter to RustImporter as it will be a pyo3 importer
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Nov 7, 2023
1 parent 17e048b commit aa79bee
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
"ligen/utils",
"ligen/traits",
"ecosystem/python/parser",
"ecosystem/python/exporter",
"ecosystem/rust/importer",
"ecosystem/rust/cargo",
"ecosystem/rust/example",
# "ecosystem/rust/exporter",
Expand Down Expand Up @@ -42,7 +42,7 @@ ligen-utils = { path = "ligen/utils" }
#ligen-c = { path = "ecosystem/c/generator" }
#ligen-cmake = { path = "ecosystem/c/cmake" }
ligen-python-parser = { path = "ecosystem/python/parser" }
ligen-python-exporter = { path = "ecosystem/python/exporter" }
ligen-rust-importer = { path = "ecosystem/rust/importer" }
#ligen-rust-exporter = { path = "ecosystem/rust/exporter" }
ligen-rust-parser = { path = "ecosystem/rust/parser" }
ligen-cargo = { path = "ecosystem/rust/cargo" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ligen-python-exporter"
name = "ligen-rust-importer"
version = "0.1.0"
edition.workspace = true
description.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ use prelude::*;
use ligen_generator::{file_generator::{TemplateRegister, Template, TemplateBasedGenerator}, register_templates};

#[derive(Debug, Default)]
pub struct PythonGenerator {}
pub struct RustImporter {}

impl TemplateRegister for PythonGenerator {
impl TemplateRegister for RustImporter {
fn register_templates(&self, template: &mut Template) -> Result<()> {
register_templates!(template, module);
// register_templates!(template, identifier, arguments, implementation, method, function, module, object, parameters, library);
Ok(())
}
}

impl TemplateBasedGenerator for PythonGenerator {
impl TemplateBasedGenerator for RustImporter {
fn register_functions(&self, _library: &Library, _template: &mut Template) {
//register_functions!(template, mapped_type, marshal_output);
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/editor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ligen-cargo.workspace = true
ligen-python-parser.workspace = true
ligen-traits.workspace = true
ligen-generator.workspace = true
ligen-python-exporter.workspace = true
ligen-rust-importer.workspace = true
egui_tiles = "0.2.0"
stacker = "0.1.15"
boolinator = "2.4.0"
4 changes: 2 additions & 2 deletions tools/editor/src/gui/ui/layout/editor/generators/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod generator;
pub use generator::*;
use ligen_python_exporter::PythonGenerator;
use ligen_rust_importer::RustImporter;

use crate::gui::ui::panes::{Pane, PaneManager};

Expand All @@ -13,7 +13,7 @@ pub struct Generators {
impl Default for Generators {
fn default() -> Self {
let generators = vec![
Generator::new(PythonGenerator::default())
Generator::new(RustImporter::default())
];
Self { generators }
}
Expand Down

0 comments on commit aa79bee

Please sign in to comment.