Skip to content

Commit 8c1e85d

Browse files
committed
fix: update imports from husk:: to husk_lang:: after package rename
1 parent a52738c commit 8c1e85d

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

examples/test-discovery-demo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use husk::{Lexer, Parser, SemanticVisitor};
1+
use husk_lang::{Lexer, Parser, SemanticVisitor};
22
use std::fs;
33

44
fn main() -> Result<(), Box<dyn std::error::Error>> {

examples/test-runner-demo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use husk::test_runner::{TestConfig, TestRunner};
2-
use husk::{Lexer, Parser, SemanticVisitor};
1+
use husk_lang::test_runner::{TestConfig, TestRunner};
2+
use husk_lang::{Lexer, Parser, SemanticVisitor};
33
use std::fs;
44

55
fn main() -> Result<(), Box<dyn std::error::Error>> {

examples/test-transpiler-demo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use husk::test_transpiler::{TestRunner, TestTranspileConfig, TestTranspiler};
2-
use husk::{Lexer, Parser, SemanticVisitor};
1+
use husk_lang::test_transpiler::{TestRunner, TestTranspileConfig, TestTranspiler};
2+
use husk_lang::{Lexer, Parser, SemanticVisitor};
33
use std::fs;
44

55
fn main() -> Result<(), Box<dyn std::error::Error>> {

src/main.rs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::path::{Path, PathBuf};
22

33
use clap::{Parser, Subcommand};
4-
use husk::repl;
4+
use husk_lang::repl;
55

66
#[derive(Parser, Debug)]
77
#[command(author, version, about, long_about = None)]
@@ -149,7 +149,7 @@ fn run_command(file: PathBuf, no_color: bool) -> anyhow::Result<()> {
149149
})
150150
.map(|p| p.to_path_buf());
151151

152-
match husk::execute_script_with_context(&code, Some(file), project_root) {
152+
match husk_lang::execute_script_with_context(&code, Some(file), project_root) {
153153
Ok(_) => {}
154154
Err(e) => {
155155
let mut stderr = Vec::new();
@@ -162,7 +162,7 @@ fn run_command(file: PathBuf, no_color: bool) -> anyhow::Result<()> {
162162
}
163163

164164
fn build_command(cli: Build, _no_color: bool) -> anyhow::Result<()> {
165-
use husk::HuskConfig;
165+
use husk_lang::HuskConfig;
166166
use std::fs;
167167

168168
// Load husk.toml configuration
@@ -231,7 +231,7 @@ fn build_command(cli: Build, _no_color: bool) -> anyhow::Result<()> {
231231

232232
let code = fs::read_to_string(&husk_file)?;
233233

234-
match husk::transpile_to_js_with_packages(&code) {
234+
match husk_lang::transpile_to_js_with_packages(&code) {
235235
Ok(js) => {
236236
fs::write(&js_file, js)?;
237237
println!(
@@ -280,7 +280,7 @@ fn find_husk_files(dir: &std::path::Path) -> anyhow::Result<Vec<std::path::PathB
280280

281281
fn compile_command(cli: Compile, no_color: bool) -> anyhow::Result<()> {
282282
let code = std::fs::read_to_string(cli.file)?;
283-
match husk::transpile_to_js_with_packages(&code) {
283+
match husk_lang::transpile_to_js_with_packages(&code) {
284284
Ok(js) => println!("{}", js),
285285
Err(e) => {
286286
let mut stderr = Vec::new();
@@ -363,8 +363,8 @@ module = "esm"
363363
}
364364

365365
fn test_command(cli: Test, no_color: bool) -> anyhow::Result<()> {
366-
use husk::test_runner::{TestConfig, TestRunner};
367-
use husk::{Lexer, Parser, SemanticVisitor};
366+
use husk_lang::test_runner::{TestConfig, TestRunner};
367+
use husk_lang::{Lexer, Parser, SemanticVisitor};
368368
use std::fs;
369369

370370
// Determine the path to search for tests
@@ -497,11 +497,13 @@ fn collect_husk_files(path: &Path, files: &mut Vec<PathBuf>) -> anyhow::Result<(
497497
}
498498

499499
fn run_transpiler_tests(
500-
ast: &[husk::Stmt],
501-
registry: &husk::TestRegistry,
500+
ast: &[husk_lang::Stmt],
501+
registry: &husk_lang::TestRegistry,
502502
cli: &Test,
503-
) -> anyhow::Result<Vec<husk::TestResult>> {
504-
use husk::test_transpiler::{TestRunner as JsTestRunner, TestTranspileConfig, TestTranspiler};
503+
) -> anyhow::Result<Vec<husk_lang::TestResult>> {
504+
use husk_lang::test_transpiler::{
505+
TestRunner as JsTestRunner, TestTranspileConfig, TestTranspiler,
506+
};
505507
use std::fs;
506508
use std::process::{Command, Stdio};
507509

0 commit comments

Comments
 (0)