Set up the environment

tae
Oct 18, 2025, 8:11 PM
TU4EG7XUHVWX7TF47TV47AGDX4EPJ7GELHOMUA4JJZQD3T47XL5AC

Dependencies

Change contents

  • file addition: shell.nix (----------)
    [2.1]
    {
    pkgs ? import <nixpkgs> { },
    }:
    with pkgs;
    mkShell {
    inputsFrom = [ (callPackage ./default.nix { }) ];
    buildInputs = [
    luajit
    rust-analyzer
    ];
    }
  • file addition: default.nix (----------)
    [2.1]
    {
    pkgs ? import <nixpkgs> { },
    }:
    with pkgs;
    let
    manifest = (lib.importTOML ./Cargo.toml).package;
    in
    stdenv.mkDerivation {
    name = manifest.name;
    version = manifest.version;
    nativeBuildInputs = [ cargo ];
    }
  • file addition: Cargo.toml (----------)
    [2.1]
    [package]
    name = "nvim-as-pijul"
    version = "0.1.0"
    edition = "2024"
    [lib]
    crate-type = ["cdylib"]
    [dependencies]
    mlua = { version = "0.11", features = ["luajit", "macros", "module"] }
  • file addition: Cargo.lock (----------)
    [2.1]
    # This file is automatically @generated by Cargo.
    # It is not intended for manual editing.
    version = 4
    [[package]]
    name = "aho-corasick"
    version = "1.1.3"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
    dependencies = [
    "memchr",
    ]
    [[package]]
    name = "autocfg"
    version = "1.5.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
    [[package]]
    name = "bitflags"
    version = "2.9.4"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "2261d10cca569e4643e526d8dc2e62e433cc8aba21ab764233731f8d369bf394"
    [[package]]
    name = "bstr"
    version = "1.12.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4"
    dependencies = [
    "memchr",
    "serde",
    ]
    [[package]]
    name = "cc"
    version = "1.2.41"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "ac9fe6cdbb24b6ade63616c0a0688e45bb56732262c158df3c0c4bea4ca47cb7"
    dependencies = [
    "find-msvc-tools",
    "shlex",
    ]
    [[package]]
    name = "cfg-if"
    version = "1.0.4"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
    [[package]]
    name = "either"
    version = "1.15.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
    [[package]]
    name = "find-msvc-tools"
    version = "0.1.4"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "52051878f80a721bb68ebfbc930e07b65ba72f2da88968ea5c06fd6ca3d3a127"
    [[package]]
    name = "itertools"
    version = "0.14.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
    dependencies = [
    "either",
    ]
    [[package]]
    name = "libc"
    version = "0.2.177"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976"
    [[package]]
    name = "lock_api"
    version = "0.4.14"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
    dependencies = [
    "scopeguard",
    ]
    [[package]]
    name = "memchr"
    version = "2.7.6"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
    [[package]]
    name = "mlua"
    version = "0.11.4"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "9be1c2bfc684b8a228fbaebf954af7a47a98ec27721986654a4cc2c40a20cc7e"
    dependencies = [
    "bstr",
    "either",
    "mlua-sys",
    "mlua_derive",
    "num-traits",
    "parking_lot",
    "rustc-hash",
    "rustversion",
    ]
    [[package]]
    name = "mlua-sys"
    version = "0.8.3"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "3d4dc9cfc5a7698899802e97480617d9726f7da78c910db989d4d0fd4991d900"
    dependencies = [
    "cc",
    "cfg-if",
    "pkg-config",
    ]
    [[package]]
    name = "mlua_derive"
    version = "0.11.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "465bddde514c4eb3b50b543250e97c1d4b284fa3ef7dc0ba2992c77545dbceb2"
    dependencies = [
    "itertools",
    "once_cell",
    "proc-macro-error2",
    "proc-macro2",
    "quote",
    "regex",
    "syn",
    ]
    [[package]]
    name = "num-traits"
    version = "0.2.19"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
    dependencies = [
    "autocfg",
    ]
    [[package]]
    name = "nvim-as-pijul"
    version = "0.1.0"
    dependencies = [
    "mlua",
    ]
    [[package]]
    name = "once_cell"
    version = "1.21.3"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
    [[package]]
    name = "parking_lot"
    version = "0.12.5"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
    dependencies = [
    "lock_api",
    "parking_lot_core",
    ]
    [[package]]
    name = "parking_lot_core"
    version = "0.9.12"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
    dependencies = [
    "cfg-if",
    "libc",
    "redox_syscall",
    "smallvec",
    "windows-link",
    ]
    [[package]]
    name = "pkg-config"
    version = "0.3.32"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
    [[package]]
    name = "proc-macro-error-attr2"
    version = "2.0.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5"
    dependencies = [
    "proc-macro2",
    "quote",
    ]
    [[package]]
    name = "proc-macro-error2"
    version = "2.0.1"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802"
    dependencies = [
    "proc-macro-error-attr2",
    "proc-macro2",
    "quote",
    "syn",
    ]
    [[package]]
    name = "proc-macro2"
    version = "1.0.101"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "89ae43fd86e4158d6db51ad8e2b80f313af9cc74f5c0e03ccb87de09998732de"
    dependencies = [
    "unicode-ident",
    ]
    [[package]]
    name = "quote"
    version = "1.0.41"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1"
    dependencies = [
    "proc-macro2",
    ]
    [[package]]
    name = "redox_syscall"
    version = "0.5.18"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
    dependencies = [
    "bitflags",
    ]
    [[package]]
    name = "regex"
    version = "1.12.2"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
    dependencies = [
    "aho-corasick",
    "memchr",
    "regex-automata",
    "regex-syntax",
    ]
    [[package]]
    name = "regex-automata"
    version = "0.4.13"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
    dependencies = [
    "aho-corasick",
    "memchr",
    "regex-syntax",
    ]
    [[package]]
    name = "regex-syntax"
    version = "0.8.8"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
    [[package]]
    name = "rustc-hash"
    version = "2.1.1"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
    [[package]]
    name = "rustversion"
    version = "1.0.22"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
    [[package]]
    name = "scopeguard"
    version = "1.2.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
    [[package]]
    name = "serde"
    version = "1.0.228"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
    dependencies = [
    "serde_core",
    ]
    [[package]]
    name = "serde_core"
    version = "1.0.228"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
    dependencies = [
    "serde_derive",
    ]
    [[package]]
    name = "serde_derive"
    version = "1.0.228"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
    dependencies = [
    "proc-macro2",
    "quote",
    "syn",
    ]
    [[package]]
    name = "shlex"
    version = "1.3.0"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
    [[package]]
    name = "smallvec"
    version = "1.15.1"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
    [[package]]
    name = "syn"
    version = "2.0.106"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6"
    dependencies = [
    "proc-macro2",
    "quote",
    "unicode-ident",
    ]
    [[package]]
    name = "unicode-ident"
    version = "1.0.19"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "f63a545481291138910575129486daeaf8ac54aee4387fe7906919f7830c7d9d"
    [[package]]
    name = "windows-link"
    version = "0.2.1"
    source = "registry+https://github.com/rust-lang/crates.io-index"
    checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
  • file addition: .ignore (----------)
    [2.1]
    *.lua
    *.so
    target/
  • file addition: .cargo (d--r------)
    [2.1]
  • file addition: config.toml (----------)
    [0.9758]
    [target.x86_64-apple-darwin]
    rustflags = [
    "-C", "link-arg=-undefined",
    "-C", "link-arg=dynamic_lookup",
    ]
    [target.aarch64-apple-darwin]
    rustflags = [
    "-C", "link-arg=-undefined",
    "-C", "link-arg=dynamic_lookup",
    ]