diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..f56adafc --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/rust:1.0-1-bullseye + +# [Optional] Uncomment this section to install additional OS packages. +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..1c4b5975 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/rust +{ + "name": "xrpl-rust", + "dockerComposeFile": "docker-compose.yml", + "service": "app", + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", + // Use 'mounts' to make the cargo cache persistent in a Docker Volume. + // "mounts": [ + // { + // "source": "devcontainer-cargo-cache-${devcontainerId}", + // "target": "/usr/local/cargo", + // "type": "volume" + // } + // ] + // Use 'postCreateCommand' to run commands after the container is created. + "postCreateCommand": "rustc --version", + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "swellaby.rust-pack", + "vadimcn.vscode-lldb" + ] + } + } + // 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/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml new file mode 100644 index 00000000..d0342a5c --- /dev/null +++ b/.devcontainer/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" + +services: + app: + build: + context: . + dockerfile: Dockerfile + command: sleep infinity + volumes: + - ../..:/workspaces:cached \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1ec67b52..338bdf82 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ Cargo.lock # Additional src/main.rs + +.DS_Store diff --git a/CHANGELOG.md b/CHANGELOG.md index 971c1e36..377fb081 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - make `new` methods of models public - add `AsyncWebsocketClient` - update dependencies +- add devcontainer ## [[v0.2.0-beta]] ### Added diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 00000000..1572ed07 Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/models/.DS_Store b/src/models/.DS_Store new file mode 100644 index 00000000..428989d5 Binary files /dev/null and b/src/models/.DS_Store differ