Compare commits

...

4 commits

Author SHA1 Message Date
Christian Westrom d35b2bd891 bacon file anyone? 2024-12-16 22:51:09 +09:00
Christian Westrom ded53aa08a update hblang 2024-12-16 22:51:03 +09:00
Christian Westrom b23f90df2e formatting 2024-12-16 22:30:16 +09:00
Christian Westrom 87c9d1f003 allow using envrc 2024-12-16 22:30:12 +09:00
5 changed files with 34 additions and 7 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake . --impure

1
.gitignore vendored
View file

@ -1 +1,2 @@
target/ target/
.direnv

6
Cargo.lock generated
View file

@ -213,12 +213,12 @@ dependencies = [
[[package]] [[package]]
name = "hbbytecode" name = "hbbytecode"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#a1e692eac73fbf44f1fbf816832aaae0ea8f04d7" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#9fe8d6bbff0c9a2f9d8989635a9758bf9b2ed566"
[[package]] [[package]]
name = "hblang" name = "hblang"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#a1e692eac73fbf44f1fbf816832aaae0ea8f04d7" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#9fe8d6bbff0c9a2f9d8989635a9758bf9b2ed566"
dependencies = [ dependencies = [
"hashbrown", "hashbrown",
"hbbytecode", "hbbytecode",
@ -229,7 +229,7 @@ dependencies = [
[[package]] [[package]]
name = "hbvm" name = "hbvm"
version = "0.1.0" version = "0.1.0"
source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#a1e692eac73fbf44f1fbf816832aaae0ea8f04d7" source = "git+https://git.ablecorp.us/AbleOS/holey-bytes.git#9fe8d6bbff0c9a2f9d8989635a9758bf9b2ed566"
dependencies = [ dependencies = [
"hbbytecode", "hbbytecode",
] ]

18
bacon.toml Normal file
View file

@ -0,0 +1,18 @@
default_job = "build"
env.CARGO_TERM_COLOR = "always"
[jobs.build]
command = ["cargo", "repbuild", "build"]
need_stdout = false
[jobs.run]
command = ["cargo", "repbuild", "run", "--release"]
need_stdout = false
[jobs.check]
command = ["cargo", "check"]
need_stdout = false
[jobs.clippy-all]
command = ["cargo", "clippy", "--all-targets"]
need_stdout = false

View file

@ -2,13 +2,20 @@
description = "A devShell example"; description = "A devShell example";
inputs = { inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay.url = "github:oxalica/rust-overlay"; rust-overlay.url = "github:oxalica/rust-overlay";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, rust-overlay, flake-utils }: outputs =
flake-utils.lib.eachDefaultSystem (system: {
self,
nixpkgs,
rust-overlay,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let let
overlays = [ (import rust-overlay) ]; overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs { pkgs = import nixpkgs {