commit 49badfeafa6ea27871db2f70ec91e0e575bb8562 Author: Thomas Heck Date: Sun Aug 1 13:21:01 2021 +0200 init diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..980ef21 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +# EditorConfig is awesome: https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*] +indent_style = tab +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f4563d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/target/ +/Cargo.lock +/flake.lock diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..218e203 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1 @@ +hard_tabs = true diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..754b4c7 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "simple-easing" +version = "0.0.0" +edition = "2018" +repository = "https://gitlab.com/chpio/simple-easing" + +[dependencies] diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..d11b334 --- /dev/null +++ b/flake.nix @@ -0,0 +1,24 @@ +{ + description = "simple-easing"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; + in { + devShell = pkgs.mkShell { + name = "simple-easing"; + buildInputs = with pkgs; [ + cargo + rustc + rustfmt + rust-analyzer + ]; + }; + } + ); +} diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..e69de29