Remove dependency on Janestreet Core

Core doubles the closure size and adds 8mb to the binary size for dubious benefit.
This adds FileUtils to do the file interaction bits that aren't in the
stdlib and removes Core in preference to the bundled Stdlib.

Tests are passing, but I want to investigate the nix build before I
commit to this approach
This commit is contained in:
Bryan Bennett 2024-08-12 12:13:53 -04:00
parent 3f5f7a602d
commit 5c01142933
No known key found for this signature in database
GPG key ID: EE149E4215408DE9
11 changed files with 184 additions and 232 deletions

View file

@ -78,12 +78,12 @@ let test_ine_error = () => {
};
let test_in_direnv_true = () => {
Core_unix.putenv(~key="direnv", ~data="direnv");
Unix.putenv("direnv", "direnv");
Alcotest.(check(bool))("In direnv", true, Versions.in_direnv());
};
let test_in_direnv_false = () => {
Core_unix.unsetenv("direnv");
Unix.putenv("direnv", "");
Alcotest.(check(bool))("Not in direnv", false, Versions.in_direnv());
};