Skip to content

Commit fdf83ea

Browse files
committed
feat: initial commit
0 parents  commit fdf83ea

File tree

6 files changed

+21369
-0
lines changed

6 files changed

+21369
-0
lines changed

.github/update-ada.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
set -e
3+
4+
BASE_DIR=$(pwd)
5+
DEPENDENCIES_DIR="$BASE_DIR/deps"
6+
7+
WORKSPACE=$(mktemp -d 2> /dev/null || mktemp -d -t 'tmp')
8+
9+
cleanup () {
10+
EXIT_CODE=$?
11+
[ -d "$WORKSPACE" ] && rm -rf "$WORKSPACE"
12+
exit $EXIT_CODE
13+
}
14+
15+
trap cleanup INT TERM EXIT
16+
17+
cd "$WORKSPACE"
18+
curl -sL -o "ada" "https://github.com/ada-url/ada/releases/latest/download/singleheader.zip"
19+
unzip ada
20+
echo "$DEPENDENCIES_DIR"
21+
cp ada.h ada.cpp "$DEPENDENCIES_DIR"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
/Cargo.lock

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "ada-rust"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]

0 commit comments

Comments
 (0)