diff --git a/README.md b/README.md index 45c8f35..a46e45e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ | | | **Languages:** | | `python-poetry` | ✅ | ✅ | ✅ | | +| `rust` | ✅ | ✅ | ✅ | Rust environment | | **Databases:** | | `postgres` | ✅ | ✅ | ✅ | | | `redis` | ✅ | ✅ | ✅ | | @@ -21,8 +22,7 @@ | `qmk` | ✅ | ✅ | ✅ | Open-source keyboard firmware for Atmel AVR and Arm USB families | | `anthropic` | | | | | | `direnv` | | | | | -| `flaim` | | | | | -| `flaim` | ✅ | ✅ | | A stack of Python modules for Stable Diffusion | +| `flaim` | ✅ | ✅ | ✅ | A stack of Python modules for Stable Diffusion | | `fooocus` | | | | | | `metabase` | | | | | | `ollama` | | | | | diff --git a/rust/.flox/env.json b/rust/.flox/env.json new file mode 100644 index 0000000..30af73f --- /dev/null +++ b/rust/.flox/env.json @@ -0,0 +1 @@ +{"name":"rust","version":1} \ No newline at end of file diff --git a/rust/.flox/env/manifest.lock b/rust/.flox/env/manifest.lock new file mode 100644 index 0000000..2dd3471 --- /dev/null +++ b/rust/.flox/env/manifest.lock @@ -0,0 +1 @@ +{"lockfile-version":1,"manifest":{"build":{},"hook":{},"install":{"cargo":{"pkg-group":"rust-toolchain","pkg-path":"cargo"},"cargo-nextest":{"pkg-path":"cargo-nextest"},"cargo-semver-checks":{"pkg-path":"cargo-semver-checks"},"cargo-watch":{"pkg-path":"cargo-watch"},"clang":{"pkg-path":"clang","systems":["aarch64-darwin","x86_64-darwin"]},"clippy":{"pkg-group":"rust-toolchain","pkg-path":"clippy"},"gcc":{"pkg-path":"gcc","systems":["aarch64-linux","x86_64-linux"]},"libiconv":{"pkg-path":"libiconv","systems":["aarch64-darwin","x86_64-darwin"]},"rust-analyzer":{"pkg-group":"rust-analyzer","pkg-path":"rust-analyzer"},"rust-lib-src":{"pkg-group":"rust-toolchain","pkg-path":"rustPlatform.rustLibSrc"},"rustc":{"pkg-group":"rust-toolchain","pkg-path":"rustc"},"rustfmt":{"pkg-group":"rust-toolchain","pkg-path":"rustfmt"}},"options":{"allow":{"licenses":[]},"semver":{},"systems":["aarch64-darwin","x86_64-darwin","aarch64-linux","x86_64-linux"]},"profile":{},"services":{},"vars":{},"version":1},"packages":[{"attr_path":"rust-analyzer","broken":false,"derivation":"/nix/store/lp6m50p13jidx5p1vb91kdgxnr995cdg-rust-analyzer-2024-09-02.drv","description":"Modular compiler frontend for the Rust language","group":"rust-analyzer","install_id":"rust-analyzer","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-analyzer-2024-09-02","outputs":{"out":"/nix/store/hf2hvr4s7q7mw44wdbmip89k62k2sqgn-rust-analyzer-2024-09-02"},"outputs_to_install":["out"],"pname":"rust-analyzer","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"2024-09-02"},{"attr_path":"rust-analyzer","broken":false,"derivation":"/nix/store/haziq6vjn7jhzvhfa9xnxdl5qgpki2rq-rust-analyzer-2024-09-02.drv","description":"Modular compiler frontend for the Rust language","group":"rust-analyzer","install_id":"rust-analyzer","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-analyzer-2024-09-02","outputs":{"out":"/nix/store/kjyinmwgwnc27rs1d3dhbsqvxyifds7m-rust-analyzer-2024-09-02"},"outputs_to_install":["out"],"pname":"rust-analyzer","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"2024-09-02"},{"attr_path":"rust-analyzer","broken":false,"derivation":"/nix/store/539wipz1kzai58zri4yhlz2ghn7kjlck-rust-analyzer-2024-09-02.drv","description":"Modular compiler frontend for the Rust language","group":"rust-analyzer","install_id":"rust-analyzer","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-analyzer-2024-09-02","outputs":{"out":"/nix/store/m0v01gnbk6jsbl8jyz311mbmw1v58qs1-rust-analyzer-2024-09-02"},"outputs_to_install":["out"],"pname":"rust-analyzer","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"2024-09-02"},{"attr_path":"rust-analyzer","broken":false,"derivation":"/nix/store/3viyg7g5rkv6ic8ksnp74xkdf5gllc1b-rust-analyzer-2024-09-02.drv","description":"Modular compiler frontend for the Rust language","group":"rust-analyzer","install_id":"rust-analyzer","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-analyzer-2024-09-02","outputs":{"out":"/nix/store/4n7jkl09aplbdbchiflmscppqlr0d2pk-rust-analyzer-2024-09-02"},"outputs_to_install":["out"],"pname":"rust-analyzer","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"2024-09-02"},{"attr_path":"cargo","broken":false,"derivation":"/nix/store/ql9ggyyxzflbbcbhrlai048a5iz5zvan-cargo-1.81.0.drv","description":"Downloads your Rust project's dependencies and builds your project","group":"rust-toolchain","install_id":"cargo","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-1.81.0","outputs":{"out":"/nix/store/wfgkbz56pqkaqasw4kfdb8nisss2xg3d-cargo-1.81.0"},"outputs_to_install":["out"],"pname":"cargo","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"cargo","broken":false,"derivation":"/nix/store/vmls4zvx5p77aqi3rqcsbda3mm18f4cg-cargo-1.81.0.drv","description":"Downloads your Rust project's dependencies and builds your project","group":"rust-toolchain","install_id":"cargo","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-1.81.0","outputs":{"out":"/nix/store/a9srl123i7n8rnad7hdl4da1pkai0s6h-cargo-1.81.0"},"outputs_to_install":["out"],"pname":"cargo","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"cargo","broken":false,"derivation":"/nix/store/zh6dc4rya6jnzqixlb7xf3sy7ksml0b2-cargo-1.81.0.drv","description":"Downloads your Rust project's dependencies and builds your project","group":"rust-toolchain","install_id":"cargo","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-1.81.0","outputs":{"out":"/nix/store/55s4qky65qdkhb1ikbaisr8lphy3dcpg-cargo-1.81.0"},"outputs_to_install":["out"],"pname":"cargo","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"cargo","broken":false,"derivation":"/nix/store/d782rhvhl0n66h3clmzxbl8bndr9z2hk-cargo-1.81.0.drv","description":"Downloads your Rust project's dependencies and builds your project","group":"rust-toolchain","install_id":"cargo","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-1.81.0","outputs":{"out":"/nix/store/y6mygvplw3prycahpvyr5zj2hv7g3bkq-cargo-1.81.0"},"outputs_to_install":["out"],"pname":"cargo","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"clippy","broken":false,"derivation":"/nix/store/gmni0pnvcardl2pg4q78qvs319l0ja0w-clippy-1.81.0.drv","description":"Bunch of lints to catch common mistakes and improve your Rust code","group":"rust-toolchain","install_id":"clippy","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clippy-1.81.0","outputs":{"out":"/nix/store/i7k68p1ay51bw9jhl8z44qncrp6s8l5c-clippy-1.81.0"},"outputs_to_install":["out"],"pname":"clippy","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"clippy","broken":false,"derivation":"/nix/store/pvxij0xmqwmg6v87zmm21n9n7xs54dyd-clippy-1.81.0.drv","description":"Bunch of lints to catch common mistakes and improve your Rust code","group":"rust-toolchain","install_id":"clippy","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clippy-1.81.0","outputs":{"out":"/nix/store/6xfqv82x2cq45dni5qbdw77c1zb7ic6s-clippy-1.81.0"},"outputs_to_install":["out"],"pname":"clippy","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"clippy","broken":false,"derivation":"/nix/store/lczsn7hjfdyc40mbaffmra9krafjzrav-clippy-1.81.0.drv","description":"Bunch of lints to catch common mistakes and improve your Rust code","group":"rust-toolchain","install_id":"clippy","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clippy-1.81.0","outputs":{"debug":"/nix/store/zdzf6pfwjmdykcpvfqcxlb9vi33y2l9l-clippy-1.81.0-debug","out":"/nix/store/mqwnvsj7d47s5k4h35f6lmgnpapckbf1-clippy-1.81.0"},"outputs_to_install":["out"],"pname":"clippy","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"clippy","broken":false,"derivation":"/nix/store/ccdpd6xk2b1ljrrnv14x0cvj77ndxkr5-clippy-1.81.0.drv","description":"Bunch of lints to catch common mistakes and improve your Rust code","group":"rust-toolchain","install_id":"clippy","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clippy-1.81.0","outputs":{"debug":"/nix/store/pf0lwvhybs1152aiqzjn3h8293mn8z8l-clippy-1.81.0-debug","out":"/nix/store/6va43lqmqzp6snyg166qyb3lbkrf9rsi-clippy-1.81.0"},"outputs_to_install":["out"],"pname":"clippy","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"rustPlatform.rustLibSrc","broken":false,"derivation":"/nix/store/ay61vxsfcaws9r0dk0nv6a3ixll069nf-rust-lib-src.drv","group":"rust-toolchain","install_id":"rust-lib-src","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-lib-src","outputs":{"out":"/nix/store/him7rcsmj66mvwcnls9nrhcd0cwg8y78-rust-lib-src"},"outputs_to_install":["out"],"pname":"rustLibSrc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"rust-lib-src"},{"attr_path":"rustPlatform.rustLibSrc","broken":false,"derivation":"/nix/store/g43cc7s9pkkq21m4xircw26w4xsv2mrb-rust-lib-src.drv","group":"rust-toolchain","install_id":"rust-lib-src","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-lib-src","outputs":{"out":"/nix/store/zwyrsxfcpan6isy77wg1akwcyxkwgavl-rust-lib-src"},"outputs_to_install":["out"],"pname":"rustLibSrc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"rust-lib-src"},{"attr_path":"rustPlatform.rustLibSrc","broken":false,"derivation":"/nix/store/9v83yi56s4lq7zma38fd1gqx34szkqgm-rust-lib-src.drv","group":"rust-toolchain","install_id":"rust-lib-src","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-lib-src","outputs":{"out":"/nix/store/9g8a7qf19sspkcip0cp2micaq8mjcw47-rust-lib-src"},"outputs_to_install":["out"],"pname":"rustLibSrc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"rust-lib-src"},{"attr_path":"rustPlatform.rustLibSrc","broken":false,"derivation":"/nix/store/hhjhkx9xn8pfgbvbbp8wqh6vz1l68gvi-rust-lib-src.drv","group":"rust-toolchain","install_id":"rust-lib-src","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rust-lib-src","outputs":{"out":"/nix/store/s7ykl9f86ixnfjf1asgwykdna5fpd5xr-rust-lib-src"},"outputs_to_install":["out"],"pname":"rustLibSrc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"rust-lib-src"},{"attr_path":"rustc","broken":false,"derivation":"/nix/store/f4135k5pcjfn0s576shn7mf96d81j4b3-rustc-wrapper-1.81.0.drv","description":"Safe, concurrent, practical language (wrapper script)","group":"rust-toolchain","install_id":"rustc","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustc-wrapper-1.81.0","outputs":{"doc":"/nix/store/04fb7crpkpicphz1pvf7a6li7v12i2yv-rustc-wrapper-1.81.0-doc","man":"/nix/store/v33v33dkk7bskm7k2kz5x871z8gx3iyc-rustc-wrapper-1.81.0-man","out":"/nix/store/nq5jqmrb3iswdp5kkrfacmv0j3vq9rzb-rustc-wrapper-1.81.0"},"outputs_to_install":["out","man"],"pname":"rustc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"wrapper-1.81.0"},{"attr_path":"rustc","broken":false,"derivation":"/nix/store/5pggp523x4x1h68qcbj2n80lj4ccbp6z-rustc-wrapper-1.81.0.drv","description":"Safe, concurrent, practical language (wrapper script)","group":"rust-toolchain","install_id":"rustc","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustc-wrapper-1.81.0","outputs":{"doc":"/nix/store/vg071l0cipdwflamj4fd1qp1fh17iq5s-rustc-wrapper-1.81.0-doc","man":"/nix/store/lavrj6ibb86xw9fvcgr8f8fivvq1lxwf-rustc-wrapper-1.81.0-man","out":"/nix/store/cc635zk0qwbjc4jpmx8v63hfjfvwd67s-rustc-wrapper-1.81.0"},"outputs_to_install":["out","man"],"pname":"rustc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"wrapper-1.81.0"},{"attr_path":"rustc","broken":false,"derivation":"/nix/store/l5ffgffdsfhb726x2nqqr743xhkjm5n0-rustc-wrapper-1.81.0.drv","description":"Safe, concurrent, practical language (wrapper script)","group":"rust-toolchain","install_id":"rustc","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustc-wrapper-1.81.0","outputs":{"doc":"/nix/store/a1izgiq50w14g1h4bn5vdrvpp84ad75h-rustc-wrapper-1.81.0-doc","man":"/nix/store/r5df6kqw5d3g9s3s3j2xgj8lr91a6xmr-rustc-wrapper-1.81.0-man","out":"/nix/store/n7kw9rcbh8rw8dj5vpm6zms3mz947sbi-rustc-wrapper-1.81.0"},"outputs_to_install":["out","man"],"pname":"rustc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"wrapper-1.81.0"},{"attr_path":"rustc","broken":false,"derivation":"/nix/store/hrb2k9y27lsy7x0w2cms1cd3vb0z16bz-rustc-wrapper-1.81.0.drv","description":"Safe, concurrent, practical language (wrapper script)","group":"rust-toolchain","install_id":"rustc","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustc-wrapper-1.81.0","outputs":{"doc":"/nix/store/sws4qqn60rfzhjfgc06kc2rq584af11g-rustc-wrapper-1.81.0-doc","man":"/nix/store/l6m9xlaj5fvx7ip969p6dv7ifpp0llr9-rustc-wrapper-1.81.0-man","out":"/nix/store/csadsvzmnzvb952kjky9ziinky5q8abr-rustc-wrapper-1.81.0"},"outputs_to_install":["out","man"],"pname":"rustc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"wrapper-1.81.0"},{"attr_path":"rustfmt","broken":false,"derivation":"/nix/store/i8y2355ckzmfxn7jywmbvgmm3ag9nvbi-rustfmt-1.81.0.drv","description":"Tool for formatting Rust code according to style guidelines","group":"rust-toolchain","install_id":"rustfmt","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustfmt-1.81.0","outputs":{"out":"/nix/store/f1dlp5xg664sajl15qwlxp5i4my5bvi6-rustfmt-1.81.0"},"outputs_to_install":["out"],"pname":"rustfmt","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"rustfmt","broken":false,"derivation":"/nix/store/m0diyanm877y3xpq92y7danfqhmrrws9-rustfmt-1.81.0.drv","description":"Tool for formatting Rust code according to style guidelines","group":"rust-toolchain","install_id":"rustfmt","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustfmt-1.81.0","outputs":{"out":"/nix/store/nyibhrbfnlz8k4r6knfqbj1h7x47gc1l-rustfmt-1.81.0"},"outputs_to_install":["out"],"pname":"rustfmt","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"1.81.0"},{"attr_path":"rustfmt","broken":false,"derivation":"/nix/store/jlyk3csnrdbj5pqi03c8jawi1sz7pd0v-rustfmt-1.81.0.drv","description":"Tool for formatting Rust code according to style guidelines","group":"rust-toolchain","install_id":"rustfmt","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustfmt-1.81.0","outputs":{"out":"/nix/store/avl1hn3h7j7bc033xlqxbiqjpdz3b3z6-rustfmt-1.81.0"},"outputs_to_install":["out"],"pname":"rustfmt","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"rustfmt","broken":false,"derivation":"/nix/store/9ln67hs15bw4r6613ziqdkn5ly9l3k4l-rustfmt-1.81.0.drv","description":"Tool for formatting Rust code according to style guidelines","group":"rust-toolchain","install_id":"rustfmt","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"rustfmt-1.81.0","outputs":{"out":"/nix/store/hkrr7pcc7ndw44pml3p512438j878d2p-rustfmt-1.81.0"},"outputs_to_install":["out"],"pname":"rustfmt","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"1.81.0"},{"attr_path":"cargo-nextest","broken":false,"derivation":"/nix/store/3sqc7yrms77r7kwnqvyza7x5v9d95l7h-cargo-nextest-0.9.79.drv","description":"Next-generation test runner for Rust projects","group":"toplevel","install_id":"cargo-nextest","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-nextest-0.9.79","outputs":{"out":"/nix/store/27ynrh8pdpph5a1akdv2r39j0810wj0m-cargo-nextest-0.9.79"},"outputs_to_install":["out"],"pname":"cargo-nextest","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"0.9.79"},{"attr_path":"cargo-nextest","broken":false,"derivation":"/nix/store/0m18218gjjqid7shjj2qjyswpdpbfwb8-cargo-nextest-0.9.79.drv","description":"Next-generation test runner for Rust projects","group":"toplevel","install_id":"cargo-nextest","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-nextest-0.9.79","outputs":{"out":"/nix/store/pwzhzfhrs1qhg6zypsmby9541zsdnirr-cargo-nextest-0.9.79"},"outputs_to_install":["out"],"pname":"cargo-nextest","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"0.9.79"},{"attr_path":"cargo-nextest","broken":false,"derivation":"/nix/store/37vpmz8wmzir14pdklp0ih2cw4d35x3f-cargo-nextest-0.9.79.drv","description":"Next-generation test runner for Rust projects","group":"toplevel","install_id":"cargo-nextest","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-nextest-0.9.79","outputs":{"out":"/nix/store/6mdcp65k4bkvj0rsczlwgka01g945f93-cargo-nextest-0.9.79"},"outputs_to_install":["out"],"pname":"cargo-nextest","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"0.9.79"},{"attr_path":"cargo-nextest","broken":false,"derivation":"/nix/store/d0wnjd489p23wxyn5g4ll2mc0hh9psjz-cargo-nextest-0.9.79.drv","description":"Next-generation test runner for Rust projects","group":"toplevel","install_id":"cargo-nextest","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-nextest-0.9.79","outputs":{"out":"/nix/store/b0prkgqr30q3fqga30nipp9kls8m150v-cargo-nextest-0.9.79"},"outputs_to_install":["out"],"pname":"cargo-nextest","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"0.9.79"},{"attr_path":"cargo-semver-checks","broken":false,"derivation":"/nix/store/hmp8p2i69rhxbbyimrfljc6n8nd50dj6-cargo-semver-checks-0.34.0.drv","description":"Tool to scan your Rust crate for semver violations","group":"toplevel","install_id":"cargo-semver-checks","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-semver-checks-0.34.0","outputs":{"out":"/nix/store/ri2489myb52vy9gy5hx1cgnxyg0hih66-cargo-semver-checks-0.34.0"},"outputs_to_install":["out"],"pname":"cargo-semver-checks","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"0.34.0"},{"attr_path":"cargo-semver-checks","broken":false,"derivation":"/nix/store/la6b37sp8s0m2ljwkzl2niba5yhsjmk7-cargo-semver-checks-0.34.0.drv","description":"Tool to scan your Rust crate for semver violations","group":"toplevel","install_id":"cargo-semver-checks","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-semver-checks-0.34.0","outputs":{"out":"/nix/store/88cm3ikpiwngcdsqassa98mfmdvi4zrh-cargo-semver-checks-0.34.0"},"outputs_to_install":["out"],"pname":"cargo-semver-checks","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"0.34.0"},{"attr_path":"cargo-semver-checks","broken":false,"derivation":"/nix/store/qm2dpkssznqj3ics91kbji73ibr7n39c-cargo-semver-checks-0.34.0.drv","description":"Tool to scan your Rust crate for semver violations","group":"toplevel","install_id":"cargo-semver-checks","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-semver-checks-0.34.0","outputs":{"out":"/nix/store/w7bjap50njgcs50r4qswl6gaqyvv4z4s-cargo-semver-checks-0.34.0"},"outputs_to_install":["out"],"pname":"cargo-semver-checks","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"0.34.0"},{"attr_path":"cargo-semver-checks","broken":false,"derivation":"/nix/store/cppaim8w1jczfw0rffj2ddchx3cyrym4-cargo-semver-checks-0.34.0.drv","description":"Tool to scan your Rust crate for semver violations","group":"toplevel","install_id":"cargo-semver-checks","license":"[ MIT, Apache-2.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-semver-checks-0.34.0","outputs":{"out":"/nix/store/lj906kawify9lx8pd74s7pkk9iyhxbkk-cargo-semver-checks-0.34.0"},"outputs_to_install":["out"],"pname":"cargo-semver-checks","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"0.34.0"},{"attr_path":"cargo-watch","broken":false,"derivation":"/nix/store/s613qfyryv1zcpl7105svabkfnjavaf1-cargo-watch-8.5.2.drv","description":"Cargo subcommand for watching over Cargo project's source","group":"toplevel","install_id":"cargo-watch","license":"CC0-1.0","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-watch-8.5.2","outputs":{"out":"/nix/store/rlwgd5mp0dz5hpwaqydnkvdmd6mak53r-cargo-watch-8.5.2"},"outputs_to_install":["out"],"pname":"cargo-watch","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"8.5.2"},{"attr_path":"cargo-watch","broken":false,"derivation":"/nix/store/b76zp6b6ikkcr1jdib46fzvyymzikzhb-cargo-watch-8.5.2.drv","description":"Cargo subcommand for watching over Cargo project's source","group":"toplevel","install_id":"cargo-watch","license":"CC0-1.0","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-watch-8.5.2","outputs":{"out":"/nix/store/b7j2gsch53hvmzgix6vxc6b0r961ilw4-cargo-watch-8.5.2"},"outputs_to_install":["out"],"pname":"cargo-watch","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"8.5.2"},{"attr_path":"cargo-watch","broken":false,"derivation":"/nix/store/b35camx2fwbbdrpypj6dc15kyq15gz8z-cargo-watch-8.5.2.drv","description":"Cargo subcommand for watching over Cargo project's source","group":"toplevel","install_id":"cargo-watch","license":"CC0-1.0","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-watch-8.5.2","outputs":{"out":"/nix/store/h79yy4ky52pnrs75z8qyq7zpv6bjzks3-cargo-watch-8.5.2"},"outputs_to_install":["out"],"pname":"cargo-watch","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"8.5.2"},{"attr_path":"cargo-watch","broken":false,"derivation":"/nix/store/awjgkvr1xj1xvjp94l3i8w7qy1jdy1f3-cargo-watch-8.5.2.drv","description":"Cargo subcommand for watching over Cargo project's source","group":"toplevel","install_id":"cargo-watch","license":"CC0-1.0","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"cargo-watch-8.5.2","outputs":{"out":"/nix/store/p58hh4s4w64vkcgxj1ic95fl56d0bb6j-cargo-watch-8.5.2"},"outputs_to_install":["out"],"pname":"cargo-watch","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"8.5.2"},{"attr_path":"clang","broken":false,"derivation":"/nix/store/cyrarkmx1v34phw6jnmxdnyfz3rrpha0-clang-wrapper-16.0.6.drv","description":"C language family frontend for LLVM (wrapper script)","group":"toplevel","install_id":"clang","license":"NCSA","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clang-wrapper-16.0.6","outputs":{"out":"/nix/store/22a6p8311lg3z4ksrjbj018i7z3vgkva-clang-wrapper-16.0.6"},"outputs_to_install":["out"],"pname":"clang","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"wrapper-16.0.6"},{"attr_path":"clang","broken":false,"derivation":"/nix/store/c2xvi8cz73d80dw49msyjv9r6kani3jw-clang-wrapper-16.0.6.drv","description":"C language family frontend for LLVM (wrapper script)","group":"toplevel","install_id":"clang","license":"NCSA","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"clang-wrapper-16.0.6","outputs":{"out":"/nix/store/b0435735h2jvry8qmkm9psjvgfnd3614-clang-wrapper-16.0.6"},"outputs_to_install":["out"],"pname":"clang","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"wrapper-16.0.6"},{"attr_path":"gcc","broken":false,"derivation":"/nix/store/wb7cqg9c862zy0kglcapx2rq67fczvsk-gcc-wrapper-13.3.0.drv","description":"GNU Compiler Collection, version 13.3.0 (wrapper script)","group":"toplevel","install_id":"gcc","license":"GPL-3.0-or-later","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"gcc-wrapper-13.3.0","outputs":{"info":"/nix/store/01yyzggvfrw4f0a5izcysj6xnzfmblxh-gcc-wrapper-13.3.0-info","man":"/nix/store/1j6i8cp6m7r6p7hmkh9wwyv7drv1550l-gcc-wrapper-13.3.0-man","out":"/nix/store/z37lqx549cl99dzz12ghsww0zjrifa1y-gcc-wrapper-13.3.0"},"outputs_to_install":["out","man"],"pname":"gcc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-linux","unfree":false,"version":"wrapper-13.3.0"},{"attr_path":"gcc","broken":false,"derivation":"/nix/store/izlcp4pxjhwab669sjq1iy8smp5a7b83-gcc-wrapper-13.3.0.drv","description":"GNU Compiler Collection, version 13.3.0 (wrapper script)","group":"toplevel","install_id":"gcc","license":"GPL-3.0-or-later","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"gcc-wrapper-13.3.0","outputs":{"info":"/nix/store/rjhksxfbbrrchf3xsxc8mf7j0k0rwca8-gcc-wrapper-13.3.0-info","man":"/nix/store/78ikl7wnjyx1dw6lg1slflv0c60anrs7-gcc-wrapper-13.3.0-man","out":"/nix/store/vh9fsdhgxcnab2qk7vdp2palkkn6j3cp-gcc-wrapper-13.3.0"},"outputs_to_install":["out","man"],"pname":"gcc","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-linux","unfree":false,"version":"wrapper-13.3.0"},{"attr_path":"libiconv","broken":false,"derivation":"/nix/store/5vmrhzwq09fhdirmzbbwpg7i2jwbwlmd-libiconv-99.drv","description":"Iconv(3) implementation","group":"toplevel","install_id":"libiconv","license":"[ BSD-2-Clause, BSD-3-Clause, APSL-1.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"libiconv-99","outputs":{"dev":"/nix/store/09xc3ld73h241sb0yj4d1l7zy5z7cvwz-libiconv-99-dev","out":"/nix/store/jnvmyc9kz3vdffs3axzd3zs6ia1lsx6h-libiconv-99"},"outputs_to_install":["out"],"pname":"libiconv","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"aarch64-darwin","unfree":false,"version":"99"},{"attr_path":"libiconv","broken":false,"derivation":"/nix/store/gsdv8mqqg4czqh4s5kk7846s06w0vgvp-libiconv-99.drv","description":"Iconv(3) implementation","group":"toplevel","install_id":"libiconv","license":"[ BSD-2-Clause, BSD-3-Clause, APSL-1.0 ]","locked_url":"https://github.com/flox/nixpkgs?rev=4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","name":"libiconv-99","outputs":{"dev":"/nix/store/qwfazkpp54m0vv61cspjr8f4ldkflyzg-libiconv-99-dev","out":"/nix/store/5shqkdbkbs2gjq6y5lays0iss7d8wbhp-libiconv-99"},"outputs_to_install":["out"],"pname":"libiconv","priority":5,"rev":"4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0","rev_count":694395,"rev_date":"2024-10-18T13:02:40Z","scrape_date":"2024-10-20T03:56:48Z","stabilities":["unstable"],"system":"x86_64-darwin","unfree":false,"version":"99"}]} \ No newline at end of file diff --git a/rust/.flox/env/manifest.toml b/rust/.flox/env/manifest.toml new file mode 100644 index 0000000..cc50196 --- /dev/null +++ b/rust/.flox/env/manifest.toml @@ -0,0 +1,51 @@ +version = 1 + +[install] +# Rust toolchain, put them in the same package group +# so rustc/cargo/etc exactly match versions/dependencies. +cargo.pkg-path = "cargo" +cargo.pkg-group = "rust-toolchain" +rustc.pkg-path = "rustc" +rustc.pkg-group = "rust-toolchain" +clippy.pkg-path = "clippy" +clippy.pkg-group = "rust-toolchain" +rustfmt.pkg-path = "rustfmt" +rustfmt.pkg-group = "rust-toolchain" +rust-lib-src.pkg-path = "rustPlatform.rustLibSrc" +rust-lib-src.pkg-group = "rust-toolchain" + +# rust-analyzer goes in its own group because it's updated +# on a different cadence from the compiler and doesn't need +# to match versions +rust-analyzer.pkg-path = "rust-analyzer" +rust-analyzer.pkg-group = "rust-analyzer" + +# Linkers +clang.pkg-path = "clang" +clang.systems = ["aarch64-darwin", "x86_64-darwin"] +gcc.pkg-path = "gcc" +gcc.systems = ["aarch64-linux", "x86_64-linux"] + +# Platform-specific libraries +libiconv.pkg-path = "libiconv" +libiconv.systems = ["aarch64-darwin", "x86_64-darwin"] + +# Extra tools +cargo-nextest.pkg-path = "cargo-nextest" +cargo-watch.pkg-path = "cargo-watch" +cargo-semver-checks.pkg-path = "cargo-semver-checks" +# For more use search: flox search cargo- --all + +[vars] + +[hook] + +[profile] + +[options] +systems = [ + "aarch64-darwin", + "x86_64-darwin", + "aarch64-linux", + "x86_64-linux", +] diff --git a/rust/.gitignore b/rust/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/rust/.gitignore @@ -0,0 +1 @@ +/target diff --git a/rust/Cargo.lock b/rust/Cargo.lock new file mode 100644 index 0000000..b21cc6a --- /dev/null +++ b/rust/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "rust" +version = "0.1.0" diff --git a/rust/Cargo.toml b/rust/Cargo.toml new file mode 100644 index 0000000..7d75412 --- /dev/null +++ b/rust/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "rust" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/rust/src/main.rs b/rust/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/rust/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/rust/test.sh b/rust/test.sh new file mode 100755 index 0000000..f38271a --- /dev/null +++ b/rust/test.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -eo pipefail + +check_command() { + if ! command -v $1 2>&1 >/dev/null + then + echo "Error: '$1' command could not be found." + exit 1 + fi +} + +check_command rustc +check_command rustfmt +check_command cargo +check_command cargo-fmt +check_command cargo-clippy + + +cargo fmt +echo ">>> Formatting code" + +cargo clippy +echo ">>> Linting code" + +cargo run +echo ">>> Building and running code" + +cargo test +echo ">>> Testing code"