Skip to content

Commit

Permalink
chore(): update crate name
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenVelocity committed Mar 16, 2022
1 parent bcde0ee commit 29ffb92
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ethereal"
name = "ethereal_lang"
version = "0.1.0"
edition = "2021"

Expand All @@ -16,7 +16,7 @@ serde_json = "1.0"
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "ethereal-bin"
name = "ethereal"
path = "src/bin/main.rs"

[[bin]]
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
cargo build --release --bin ethereal-bin
cargo build --release --bin ethereal

build-wasm:
cargo build --release --bin wasm --target wasm32-unknown-unknown
Expand Down
6 changes: 3 additions & 3 deletions src/bin/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

extern crate ethereal;
extern crate ethereal_lang;

use std::env;
use std::fs;
use ethereal::repl;
use ethereal_lang::repl;
fn main() {
let args: Vec<String> = env::args().collect();
if args.len() != 1 && args[1].as_str() == "run" {
Expand All @@ -14,7 +14,7 @@ fn main() {
}
let content = fs::read_to_string(&args[2]).expect("Could not read file.");

ethereal::interpret(content.as_str());
ethereal_lang::interpret(content.as_str());
} else {

println!(
Expand Down
16 changes: 8 additions & 8 deletions src/wasm/main.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
extern crate ethereal;
extern crate ethereal_lang;

use ethereal::ast::Program;
use ethereal::evaluation::globals::new_globals;
use ethereal::evaluation::store::Store;
use ethereal::evaluation::object::Object;
use ethereal::evaluation::Eval;
use ethereal::lexer::Lexer;
use ethereal::parser::Parser;
use ethereal_lang::ast::Program;
use ethereal_lang::evaluation::globals::new_globals;
use ethereal_lang::evaluation::store::Store;
use ethereal_lang::evaluation::object::Object;
use ethereal_lang::evaluation::Eval;
use ethereal_lang::lexer::Lexer;
use ethereal_lang::parser::Parser;
use std::cell::RefCell;
use std::ffi::{CStr, CString};
use std::mem;
Expand Down

0 comments on commit 29ffb92

Please sign in to comment.