Fix doctests and macros after crate rename
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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();
|
||||
/// ```
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user