diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..7f9260c --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM mcr.microsoft.com/devcontainers/rust:latest + +# install a few tools for more convenient developing +#RUN apt-get update; \ +# apt-get -y install --fix-missing \ +# git python3 cmake g++ python-is-python3 + +# [Optional] Uncomment this section to install additional packages. +#RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends python-is-python3 + +# Add ./bin to PATH +ENV PATH="./bin:${PATH}" diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2b8c629 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/cpp +// Based on https://github.com/microsoft/vscode-remote-try-cpp?tab=readme-ov-file +{ + "name": "Rust Dev Playbook", + "build": { + "dockerfile": "Dockerfile" + }, + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, // https://github.com/devcontainers/features/tree/main/src/github-cli + "ghcr.io/devcontainers-contrib/features/actions-runner:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/actions-runner + "ghcr.io/devcontainers-contrib/features/actionlint:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/actionlint + "ghcr.io/devcontainers-contrib/features/direnv:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/direnv + "ghcr.io/devcontainers-contrib/features/fd:1": {}, // https://github.com/devcontainers-contrib/features/tree/main/src/fd + }, + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + "settings": {}, + "extensions": [ + "eamodio.gitlens", + "streetsidesoftware.code-spell-checker", + ] + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "", + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 99a87d7..8565036 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "cardpack" description = "Generic Deck of Cards" -version = "0.4.20" +version = "0.4.21" authors = ["electronicpanopticon "] repository = "https://github.com/ImperialBower/cardpack.rs.git" homepage = "https://github.com/ImperialBower/cardpack.rs" @@ -17,15 +17,15 @@ path = "src/lib.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -colored = "2" +colored = "2.1.0" fluent-templates = "0.8.0" -flume = "0.10.14" +flume = "0.11.0" lazy_static = "1.4.0" -log = "0.4" +log = "0.4.20" rand = "0.8.5" spin = "0.9.8" term-table = "1.3.2" -unic-langid = { version = "0.9.0", features = ["macros"] } +unic-langid = { version = "0.9.4", features = ["macros"] } [dev-dependencies] -rstest = "0.17.0" +rstest = "0.18.2"