Skip to content

Commit

Permalink
prepare for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sezna committed Jul 23, 2024
1 parent 9fd368a commit c221a46
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 32 deletions.
44 changes: 22 additions & 22 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"petr-parse",
"petr-fmt",
"petr-utils",
"pete",
"petr-cli",
"petr-codegen",
"petr-ast",
"petr-typecheck",
Expand All @@ -15,5 +15,6 @@ members = [
"petr-pkg",
"petr-profiling",
"petr-api",
"petr-playground"
, "stdlib"]
"petr-playground",
"petr-stdlib",
]
18 changes: 18 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,21 @@ test:

update-expects:
CARGO_TERM_COLOR=always NO_COLOR=1 UPDATE_EXPECT=1 cargo test

publish:
cargo publish petr-parse &&
cargo publish petr-fmt &&
cargo publish petr-utils &&
cargo publish petr-cli &&
cargo publish petr-codegen &&
cargo publish petr-ast &&
cargo publish petr-typecheck &&
cargo publish petr-bind &&
cargo publish petr-resolve &&
cargo publish petr-ir &&
cargo publish petr-vm &&
cargo publish petr-pkg &&
cargo publish petr-profiling &&
cargo publish petr-api &&
cargo publish petr-playground

8 changes: 6 additions & 2 deletions pete/Cargo.toml → petr-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "pete"
name = "petr-cli"
version = "0.1.0"
edition = "2021"

Expand All @@ -15,4 +15,8 @@ thiserror = "1.0"
toml = "0.8"
termcolor = { version = "1.4" }
petr-pkg = { "path" = "../petr-pkg" }
stdlib = { "path" = "../stdlib" }
petr-stdlib = { "path" = "../petr-stdlib" }

[[bin]]
name = "pete"
path = "src/main.rs"
2 changes: 1 addition & 1 deletion pete/src/main.rs → petr-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub fn compile(
let mut dependencies = Vec::with_capacity(build_plan.items.len() + 1);

// add the stdlib
let parser = Parser::new_with_existing_interner_and_source_map(stdlib::stdlib(), interner, source_map);
let parser = Parser::new_with_existing_interner_and_source_map(petr_stdlib::stdlib(), interner, source_map);
let (dep_ast, mut new_parse_errs, mut interner, mut source_map) = parser.into_result();
parse_errs.append(&mut new_parse_errs);

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion petr-playground/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ crate-type = ["cdylib"]
[dependencies]
wasm-bindgen = "0.2.92"
petr-api = { path = "../petr-api", default-features = false, features = ["no_std"] }
stdlib = { path = "../stdlib" }
petr-stdlib = { path = "../petr-stdlib" }

[dev-dependencies]
expect-test = "1.5.0"
2 changes: 1 addition & 1 deletion petr-playground/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn errors_to_html(e: &[String]) -> String {
}

fn compile_snippet(input: String) -> Result<Lowerer, Vec<String>> {
let mut sources = stdlib::stdlib();
let mut sources = petr_stdlib::stdlib();
sources.push(("snippet", &input));
let parser = petr_api::Parser::new(sources);
let (ast, errs, interner, source_map) = parser.into_result();
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Cargo.toml → petr-stdlib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "stdlib"
name = "petr-stdlib"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion petr-vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ petr-parse = { path = "../petr-parse" }
expect-test = "1.5.0"
petr-resolve = { path = "../petr-resolve" }
petr-typecheck = { path = "../petr-typecheck" }
stdlib = { path = "../stdlib" }
petr-stdlib = { path = "../petr-stdlib" }

[features]
debug = ["petr-utils/debug"]
Expand Down

0 comments on commit c221a46

Please sign in to comment.