From 4eb56da5fc071cf2ba806ba853e117fe887afd18 Mon Sep 17 00:00:00 2001 From: Foorack Date: Sat, 7 Aug 2021 23:38:34 +0200 Subject: [PATCH] build: add description and license to Cargo.toml --- Cargo.toml | 2 ++ generate.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 62c43f8..317719a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,9 @@ name = "vrchatapi" version = "1.0.0" authors = ["OpenAPI Generator team and contributors"] +license = "MIT" edition = "2018" +description="VRChat API Library for Rust" [dependencies] serde = "^1.0" diff --git a/generate.sh b/generate.sh index decf49a..3cf6dbd 100755 --- a/generate.sh +++ b/generate.sh @@ -14,8 +14,8 @@ openapi-generator-cli generate \ rm docs -rf -#description = "VRChat API Library for Rust" -#license = "MIT" +sed -i '/^edition = "2018"/i license = "MIT"' Cargo.toml +sed -i '/^edition = "2018"/a description="VRChat API Library for Rust"' Cargo.toml # Remove unwanted lines from README #sed -i '/Uncomment the following line to set a prefix/d' ./README.md