prepare crates for publishing
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-07-08 19:16:09 -04:00
parent 03004b31e7
commit 524a12305c
6 changed files with 70 additions and 1 deletions

View File

@ -30,6 +30,37 @@ steps:
--- ---
kind: pipeline
name: cargo publish
steps:
- name: publish elfs
image: rust:1
commands:
- cd elfs
- cargo login $CARGO_TOKEN
- cargo publish
environment:
CARGO_TOKEN:
from_secret: CARGO_TOKEN
when:
event:
- tag
- name: publish gitea
image: rust:1
commands:
- cd gitea
- cargo login $CARGO_TOKEN
- cargo publish
environment:
CARGO_TOKEN:
from_secret: CARGO_TOKEN
when:
event:
- tag
---
kind: pipeline kind: pipeline
name: docker name: docker
steps: steps:

View File

@ -3,8 +3,14 @@ name = "elfs"
version = "0.1.0" version = "0.1.0"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"
homepage = "https://tulpa.dev/cadey/gitea-release/src/branch/main/elfs"
repository = "https://tulpa.dev/cadey/gitea-release"
keywords = ["namegen"]
license = "MIT"
readme = "README.md"
description = "A simple name generator for Rust programs."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
names = "0" names = "0.11"

16
elfs/README.md Normal file
View File

@ -0,0 +1,16 @@
# elfs
A simple name generator based on [Pokemon Vietnamese Crystal](https://tvtropes.org/pmwiki/pmwiki.php/VideoGame/PokemonVietnameseCrystal).
## Usage
Add the following to your `Cargo.toml`:
```toml
[dependencies]
elfs = "0.1"
```
```rust
let name = elfs::next();
```

View File

@ -3,6 +3,12 @@ name = "gitea"
version = "0.1.0" version = "0.1.0"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"
homepage = "https://tulpa.dev/cadey/gitea-release/src/branch/main/gitea"
repository = "https://tulpa.dev/cadey/gitea-release"
keywords = ["gitea", "api", "http"]
license = "MIT"
readme = "README.md"
description = "A Gitea client for Rust programs."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

8
gitea/README.md Normal file
View File

@ -0,0 +1,8 @@
# gitea
A simple Gitea client for Rust programs. You will need an API token as described
[here](https://docs.gitea.io/en-us/api-usage/).
```toml
gitea = "0.1.0"
```

View File

@ -1,3 +1,5 @@
/// The main Gitea client. You will need an API token as described [here](https://docs.gitea.io/en-us/api-usage/).
use reqwest::header; use reqwest::header;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::result::Result as StdResult; use std::result::Result as StdResult;