Skip to content

Commit

Permalink
feat: add support for rust
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Sep 5, 2024
1 parent 6fe3204 commit 265d72b
Show file tree
Hide file tree
Showing 23 changed files with 1,272 additions and 1 deletion.
11 changes: 11 additions & 0 deletions compiled_starters/rust/.codecrafters/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script is used to compile your program on CodeCrafters
#
# This runs before .codecrafters/run.sh
#
# Learn more: https://codecrafters.io/program-interface

set -e # Exit on failure

cargo build --release --target-dir=/tmp/codecrafters-redis-target --manifest-path Cargo.toml
11 changes: 11 additions & 0 deletions compiled_starters/rust/.codecrafters/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
#
# This script is used to run your program on CodeCrafters
#
# This runs after .codecrafters/compile.sh
#
# Learn more: https://codecrafters.io/program-interface

set -e # Exit on failure

exec /tmp/codecrafters-redis-target/release/redis-starter-rust "$@"
1 change: 1 addition & 0 deletions compiled_starters/rust/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
10 changes: 10 additions & 0 deletions compiled_starters/rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
Loading

0 comments on commit 265d72b

Please sign in to comment.