3 Commits

Author SHA1 Message Date
fad42e9763 Release v0.2.1 2024-11-05 21:59:47 +01:00
7ac8b7c19d Fix doctests and macros after crate rename 2024-11-05 21:59:47 +01:00
fe233f9fca Add github workflow 2024-11-05 21:46:35 +01:00
7 changed files with 30 additions and 8 deletions

22
.github/workflows/rust.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

View File

@@ -13,7 +13,7 @@ categories.workspace = true
readme.workspace = true
[workspace.package]
version = "0.2.0"
version = "0.2.1"
edition = "2021"
rust-version = "1.81"

View File

@@ -105,7 +105,7 @@ fn parse_transparent_enum(mut e: syn::ItemEnum) -> (Translator, syn::Item) {
}
pub(crate) fn transform(attr: TokenStream, item: TokenStream) -> TokenStream {
let root = quote! {::aws};
let root = quote! {::aws_lib};
let expr: syn::Expr = syn::parse(attr).expect("expected expr in macro attribute");

View File

@@ -152,7 +152,7 @@ fn parse_struct(input: syn::ItemStruct) -> Input {
}
fn build_output(input: Input) -> TokenStream {
let root = quote! { ::aws };
let root = quote! { ::aws_lib };
let ident = input.ident;
let vis = input.vis;

View File

@@ -1,6 +1,6 @@
//! Provides an opinionated interface to the AWS API
extern crate self as aws;
extern crate self as aws_lib;
use std::{
fmt::{self, Debug},

View File

@@ -12,7 +12,7 @@ methods to create a struct instance for an instance [`TagList`], and turn a
struct instance back into a [`TagList`]:
```rust
use aws::tags::{Tags, TagList, RawTag};
use aws_lib::tags::{Tags, TagList, RawTag};
#[Tags]
struct MyTags {
@@ -55,7 +55,7 @@ There is a [`macro@Tag`] macro that selects the strategy, which can then be used
in a struct that is using `#[Tags]`:
```rust
use aws::tags::{Tag, Tags};
use aws_lib::tags::{Tag, Tags};
use serde::{Serialize, Deserialize};
#[Tag(translate = serde)]

View File

@@ -166,7 +166,7 @@ helpers::impl_string_wrapper!(TagKey);
/// * You already have a `T`: Just use [`new()`](Self::new())
///
/// ```rust
/// # use aws::tags::Tag;
/// # use aws_lib::tags::Tag;
/// let tag = Tag::<bool>::new("foo".to_owned(), true);
/// ```
///
@@ -176,7 +176,7 @@ helpers::impl_string_wrapper!(TagKey);
/// for `String`:
///
/// ```rust
/// # use aws::tags::Tag;
/// # use aws_lib::tags::Tag;
/// let tag = Tag::<bool>::parse("foo".to_owned(), "true".to_owned()).unwrap();
/// ```
///