diff options
| author | 2025-04-20 12:19:13 +0300 | |
|---|---|---|
| committer | 2025-04-20 12:22:26 +0300 | |
| commit | eb5ba1af257034f5f6860f5ec7b78834bf279aa2 (patch) | |
| tree | 94328a3d727268d83dd31305413baf4482328e05 | |
| download | logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.tar.gz logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.tar.bz2 logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.tar.lz logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.tar.xz logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.tar.zst logic-rust-eb5ba1af257034f5f6860f5ec7b78834bf279aa2.zip | |
feat: initial commit
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Cargo.lock | 7 | ||||
| -rw-r--r-- | Cargo.toml | 6 | ||||
| -rw-r--r-- | flake.lock | 82 | ||||
| -rw-r--r-- | flake.nix | 50 | ||||
| -rw-r--r-- | src/main.rs | 3 | 
6 files changed, 149 insertions, 0 deletions
| diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..3d3cfce --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "logic-rust" +version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..6090d27 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "logic-rust" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..2eadfcb --- /dev/null +++ b/flake.lock @@ -0,0 +1,82 @@ +{ +  "nodes": { +    "flake-utils": { +      "inputs": { +        "systems": "systems" +      }, +      "locked": { +        "lastModified": 1731533236, +        "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", +        "owner": "numtide", +        "repo": "flake-utils", +        "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", +        "type": "github" +      }, +      "original": { +        "owner": "numtide", +        "repo": "flake-utils", +        "type": "github" +      } +    }, +    "nixpkgs": { +      "locked": { +        "lastModified": 1744868846, +        "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", +        "owner": "NixOS", +        "repo": "nixpkgs", +        "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", +        "type": "github" +      }, +      "original": { +        "owner": "NixOS", +        "ref": "nixpkgs-unstable", +        "repo": "nixpkgs", +        "type": "github" +      } +    }, +    "root": { +      "inputs": { +        "flake-utils": "flake-utils", +        "nixpkgs": "nixpkgs", +        "rust-overlay": "rust-overlay" +      } +    }, +    "rust-overlay": { +      "inputs": { +        "nixpkgs": [ +          "nixpkgs" +        ] +      }, +      "locked": { +        "lastModified": 1745116541, +        "narHash": "sha256-5xzA6dTfqCfTTDCo3ipPZzrg3wp01xmcr73y4cTNMP8=", +        "owner": "oxalica", +        "repo": "rust-overlay", +        "rev": "e2142ef330a61c02f274ac9a9cb6f8487a5d0080", +        "type": "github" +      }, +      "original": { +        "owner": "oxalica", +        "repo": "rust-overlay", +        "type": "github" +      } +    }, +    "systems": { +      "locked": { +        "lastModified": 1681028828, +        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", +        "owner": "nix-systems", +        "repo": "default", +        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", +        "type": "github" +      }, +      "original": { +        "owner": "nix-systems", +        "repo": "default", +        "type": "github" +      } +    } +  }, +  "root": "root", +  "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..fe65357 --- /dev/null +++ b/flake.nix @@ -0,0 +1,50 @@ +{ +  description = "logic-rust - project to solve course work for Computer Circuit Design"; + +  inputs = { +    flake-utils.url = "github:numtide/flake-utils"; +    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + +    rust-overlay = { +      url = "github:oxalica/rust-overlay"; +      inputs.nixpkgs.follows = "nixpkgs"; +      inputs.flake-utils.follows = "flake-utils"; +    }; +  }; + +  outputs = +    { +      flake-utils, +      nixpkgs, +      rust-overlay, +      self, +      ... +    }@inputs: +    flake-utils.lib.eachSystem [ "x86_64-linux" ] ( +      system: +      let +        pkgs = import nixpkgs { +          inherit system; +          overlays = [ +            rust-overlay.overlays.default +          ]; +        }; +      in +      { +        devShells.default = pkgs.mkShell { +          packages = with pkgs; [ +            bacon +            (rust-bin.selectLatestNightlyWith ( +              toolchain: +              toolchain.default.override { +                extensions = [ +                  "rust-analyzer" +                  "rust-src" +                ]; +              } +            )) +          ]; +        }; +      } +    ); +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { +    println!("Hello, world!"); +} | 
