Skip to content

Commit

Permalink
merge both crates for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
wiseaidev committed Jan 18, 2024
1 parent f24b5fc commit 7ff53c6
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 28 deletions.
8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ clap = { version = "4.4.12", features = ["derive"] , optional = true }
dirs = "5.0.1"
once_cell = "1.19.0"

[build-dependencies]
codegen = { path = "codegen", version = "0.1.0" }

[workspace]
members = [
"codegen",
]

[features]
cli = ["clap"]

Expand Down
7 changes: 5 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#[path = "codegen/src/code_gen.rs"]
pub mod code_gen;
#[path = "src/codegen.rs"]
pub mod codegen;

#[path = "src/names.rs"]
pub mod names;

use codegen::run;

Expand Down
8 changes: 0 additions & 8 deletions codegen/Cargo.toml

This file was deleted.

2 changes: 0 additions & 2 deletions codegen/src/lib.rs

This file was deleted.

10 changes: 5 additions & 5 deletions codegen/src/code_gen.rs → src/codegen.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::names::_name_to_enum_name;
use std::fs;

const NAMES_DATA: &str = include_str!("../countries-names.txt");
const CODES_2_DATA: &str = include_str!("../countries-two.txt");
const CODES_3_DATA: &str = include_str!("../countries-three.txt");
const COUNTRIES_TO_CONTINENTS: &str = include_str!("../countries-to-continents.txt");
const DMA: &str = include_str!("../dma.txt");
const NAMES_DATA: &str = include_str!("countries-names.txt");
const CODES_2_DATA: &str = include_str!("countries-two.txt");
const CODES_3_DATA: &str = include_str!("countries-three.txt");
const COUNTRIES_TO_CONTINENTS: &str = include_str!("countries-to-continents.txt");
const DMA: &str = include_str!("dma.txt");

trait PushMut<T> {
fn add(self, item: T) -> Self;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,5 @@ pub mod errors;
pub mod geo_ip_reader;
pub mod time_zones;
pub mod utils;
#[path = "../codegen/src/code_gen.rs"]
pub mod code_gen;
#[path = "../codegen/src/names.rs"]
pub mod codegen;
pub mod names;
File renamed without changes.

0 comments on commit 7ff53c6

Please sign in to comment.