Skip to content

Commit

Permalink
fix: remove deprecated files and clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zzau13 committed Aug 4, 2024
1 parent 7ac3cd5 commit 316f579
Show file tree
Hide file tree
Showing 19 changed files with 54 additions and 791 deletions.
14 changes: 4 additions & 10 deletions yarte/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,16 @@ use std::fmt::{self, Write};
/// # use yarte::*;
///
/// let world = "World";
/// ##[cfg(any(feature = "bytes-buf", feature = "bytes-buf-tokio2"))]
/// ##[cfg(feature = "bytes-buf")]
/// let buf = auto!(ywrite!(String, "Hello, {{ world }}!"));
///
/// ##[cfg(any(feature = "bytes-buf", feature = "bytes-buf-tokio2"))]
/// ##[cfg(feature = "bytes-buf")]
/// assert_eq!(buf, "Hello, World!");
/// ```
pub use yarte_derive::auto;

#[cfg(all(
any(feature = "bytes-buf", feature = "bytes-buf-tokio2"),
feature = "html-min"
))]
pub use yarte_derive::ywrite_min;
#[cfg(any(feature = "bytes-buf", feature = "bytes-buf-tokio2"))]
pub use yarte_derive::{yarte, ywrite, ywrite_html};
pub use yarte_derive::{yformat, yformat_html};
#[cfg(feature = "bytes-buf")]
pub use yarte_derive::ywrite;
pub use yarte_helpers::{
helpers::{
display_fn::DisplayFn, io_fmt::IoFmt, Aligned256, IntoCopyIterator, Render, RenderA,
Expand Down
12 changes: 0 additions & 12 deletions yarte/tests/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,6 @@ enum Animal {
AntHive(Vec<String>),
}

#[derive(Clone, Debug, PartialEq, Serialize)]
struct Inner {
a: (),
b: usize,
c: Vec<String>,
}

#[derive(Clone, Debug, PartialEq, Serialize)]
struct Outer {
inner: Vec<Inner>,
}

#[derive(Clone, Debug, PartialEq, Serialize)]
struct Tuple {
tuple: (u8, u8, u8, u8),
Expand Down
5 changes: 0 additions & 5 deletions yarte/tests/proc-fails/proc-basic.rs

This file was deleted.

13 changes: 0 additions & 13 deletions yarte/tests/proc-fails/proc-basic.stderr

This file was deleted.

236 changes: 0 additions & 236 deletions yarte_codegen/src/fixed.rs

This file was deleted.

14 changes: 0 additions & 14 deletions yarte_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,19 @@ use yarte_hir::{Each, IfElse, HIR};
mod attr_b;
#[cfg(feature = "bytes-buf")]
mod bytes;
#[cfg(feature = "fixed")]
mod fixed;
mod fmt;
mod fn_fmt;
mod html;
mod text;
pub mod wasm;
#[cfg(feature = "bytes-buf")]
mod write_b;

pub use self::{fmt::FmtCodeGen, fn_fmt::FnFmtCodeGen, html::HTMLCodeGen, text::TextCodeGen};

#[cfg(any(feature = "wasm-app", feature = "wasm-server"))]
pub use wasm::*;

#[cfg(feature = "bytes-buf")]
pub use self::attr_b::AttrBCodeGen;
#[cfg(all(feature = "bytes-buf", feature = "html-min"))]
pub use self::bytes::html_min::HTMLMinBytesCodeGen;
#[cfg(feature = "bytes-buf")]
pub use self::bytes::{BytesCodeGen, HTMLBytesCodeGen, TextBytesCodeGen};
#[cfg(all(feature = "fixed", feature = "html-min"))]
pub use self::fixed::html_min::HTMLMinFixedCodeGen;
#[cfg(feature = "fixed")]
pub use self::fixed::{FixedCodeGen, HTMLFixedCodeGen, TextFixedCodeGen};
#[cfg(feature = "html-min")]
pub use self::html::html_min::HTMLMinCodeGen;
#[cfg(feature = "bytes-buf")]
pub use self::write_b::WriteBCodeGen;

Expand Down
Loading

0 comments on commit 316f579

Please sign in to comment.