diff --git a/generate.sh b/generate.sh index b11be0f..d805b38 100755 --- a/generate.sh +++ b/generate.sh @@ -28,7 +28,7 @@ sed -i 's/Client::new()/Client::builder().cookie_store(true).build().unwrap()/g' sed -i 's/features = \["json", "multipart"\]/features = \["json", "cookies", "multipart"\]/g' Cargo.toml #Fix example -printf "\n[dev-dependencies]\ntokio = { version = '1', features = ['macros', 'rt-multi-thread'] }" >> Cargo.toml +cat patches/Cargo.toml >> Cargo.toml # https://github.com/vrchatapi/specification/issues/241 cat patches/2FA_Current_User.rs >> src/models/current_user.rs diff --git a/patches/Cargo.toml b/patches/Cargo.toml new file mode 100644 index 0000000..bcf6157 --- /dev/null +++ b/patches/Cargo.toml @@ -0,0 +1,12 @@ +[dev-dependencies] +tokio = { version = '1', features = ['macros', 'rt-multi-thread'] } +totp_rfc6238 = "0.6.1" +anyhow = "1" +thiserror = "1" +dotenv = "0.15" +base32 = "0.5.1" + +[[test]] +name = "integration" +path = "integration/main.rs" +harness = false \ No newline at end of file