Prepare v0.1.1 release for crates.io
- Rename `macros` crate to `libmarathon-macros` for better discoverability on crates.io - Update all imports from `macros::` to `libmarathon_macros::` - Add crates.io metadata (description, license, repository, homepage, etc.) - Bump version to 0.1.1 - Add version requirement for libmarathon-macros dependency
This commit is contained in:
@@ -109,7 +109,7 @@ pub trait SyncComponent: Component + Reflect + Sized {
|
||||
///
|
||||
/// ```no_compile
|
||||
/// // Define a synced component with the #[synced] attribute
|
||||
/// #[macros::synced]
|
||||
/// #[libmarathon_macros::synced]
|
||||
/// pub struct CubeMarker {
|
||||
/// pub color_r: f32,
|
||||
/// pub size: f32,
|
||||
|
||||
@@ -15,7 +15,7 @@ use bevy_ecs::{
|
||||
};
|
||||
use core::{marker::PhantomData, ops::Deref};
|
||||
|
||||
pub use macros::ExtractComponent;
|
||||
pub use libmarathon_macros::ExtractComponent;
|
||||
|
||||
/// Stores the index of a uniform inside of [`ComponentUniforms`].
|
||||
#[derive(Component)]
|
||||
|
||||
@@ -2,7 +2,7 @@ use core::marker::PhantomData;
|
||||
|
||||
use bevy_app::{App, Plugin};
|
||||
use bevy_ecs::prelude::*;
|
||||
pub use macros::ExtractResource;
|
||||
pub use libmarathon_macros::ExtractResource;
|
||||
use bevy_utils::once;
|
||||
|
||||
use crate::render::{Extract, ExtractSchedule, RenderApp};
|
||||
|
||||
@@ -26,7 +26,7 @@ use bevy_ecs::{
|
||||
use bevy_image::{Image, TextureFormatPixelInfo};
|
||||
use bevy_platform::collections::HashMap;
|
||||
use bevy_reflect::Reflect;
|
||||
use macros::ExtractComponent;
|
||||
use libmarathon_macros::ExtractComponent;
|
||||
use encase::internal::ReadFrom;
|
||||
use encase::private::Reader;
|
||||
use encase::ShaderType;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
pub use crate::define_atomic_id;
|
||||
|
||||
// Re-export derive macros from macros
|
||||
pub use macros::{AsBindGroup, RenderLabel, RenderSubGraph};
|
||||
pub use libmarathon_macros::{AsBindGroup, RenderLabel, RenderSubGraph};
|
||||
|
||||
#[cfg(target_pointer_width = "16")]
|
||||
compile_error!("bevy_render cannot compile for a 16-bit platform.");
|
||||
|
||||
@@ -11,7 +11,7 @@ use core::fmt::Debug;
|
||||
|
||||
use super::{EdgeExistence, InternedRenderLabel, IntoRenderNodeArray};
|
||||
|
||||
pub use macros::RenderSubGraph;
|
||||
pub use libmarathon_macros::RenderSubGraph;
|
||||
|
||||
define_label!(
|
||||
#[diagnostic::on_unimplemented(
|
||||
|
||||
@@ -18,7 +18,7 @@ use downcast_rs::{impl_downcast, Downcast};
|
||||
use thiserror::Error;
|
||||
use variadics_please::all_tuples_with_size;
|
||||
|
||||
pub use macros::RenderLabel;
|
||||
pub use libmarathon_macros::RenderLabel;
|
||||
|
||||
use super::{InternedRenderSubGraph, RenderSubGraph};
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ use bevy_ecs::{
|
||||
system::{lifetimeless::SRes, SystemParamItem},
|
||||
};
|
||||
use crate::render::renderer::RenderAdapterInfo;
|
||||
pub use macros::ShaderLabel;
|
||||
pub use libmarathon_macros::ShaderLabel;
|
||||
use core::{fmt::Debug, hash::Hash, iter, marker::PhantomData, ops::Range, slice::SliceIndex};
|
||||
use smallvec::SmallVec;
|
||||
use tracing::warn;
|
||||
@@ -85,7 +85,7 @@ define_label!(
|
||||
/// A shorthand for `Interned<dyn RenderSubGraph>`.
|
||||
pub type InternedShaderLabel = Interned<dyn ShaderLabel>;
|
||||
|
||||
pub use macros::DrawFunctionLabel;
|
||||
pub use libmarathon_macros::DrawFunctionLabel;
|
||||
|
||||
define_label!(
|
||||
#[diagnostic::on_unimplemented(
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::render::{
|
||||
};
|
||||
use bevy_derive::{Deref, DerefMut};
|
||||
use bevy_ecs::system::{SystemParam, SystemParamItem};
|
||||
pub use macros::AsBindGroup;
|
||||
pub use libmarathon_macros::AsBindGroup;
|
||||
use core::ops::Deref;
|
||||
use encase::ShaderType;
|
||||
use thiserror::Error;
|
||||
|
||||
@@ -14,7 +14,7 @@ use core::{hash::Hash, marker::PhantomData};
|
||||
use tracing::error;
|
||||
use variadics_please::all_tuples;
|
||||
|
||||
pub use macros::{Specializer, SpecializerKey};
|
||||
pub use libmarathon_macros::{Specializer, SpecializerKey};
|
||||
|
||||
/// Defines a type that is able to be "specialized" and cached by creating and transforming
|
||||
/// its descriptor type. This is implemented for [`RenderPipeline`] and [`ComputePipeline`], and
|
||||
|
||||
@@ -3,7 +3,7 @@ use bevy_ecs::{prelude::Component, resource::Resource};
|
||||
use bevy_image::BevyDefault;
|
||||
use bevy_math::UVec2;
|
||||
use bevy_platform::collections::HashMap;
|
||||
use macros::ExtractResource;
|
||||
use libmarathon_macros::ExtractResource;
|
||||
use wgpu::TextureFormat;
|
||||
|
||||
use crate::render::render_resource::TextureView;
|
||||
|
||||
@@ -33,7 +33,7 @@ use bevy_image::{BevyDefault as _, ToExtents};
|
||||
use bevy_math::{mat3, vec2, vec3, Mat3, Mat4, UVec4, Vec2, Vec3, Vec4, Vec4Swizzles};
|
||||
use bevy_platform::collections::{hash_map::Entry, HashMap};
|
||||
use bevy_reflect::{std_traits::ReflectDefault, Reflect};
|
||||
use macros::ExtractComponent;
|
||||
use libmarathon_macros::ExtractComponent;
|
||||
use bevy_shader::load_shader_library;
|
||||
use bevy_transform::components::GlobalTransform;
|
||||
use core::{
|
||||
|
||||
@@ -18,7 +18,7 @@ use serde::{
|
||||
Serialize,
|
||||
};
|
||||
// TODO: Re-export the Synced derive macro (not part of bevy_render_macros)
|
||||
// pub use macros::Synced;
|
||||
// pub use libmarathon_macros::Synced;
|
||||
|
||||
pub type NodeId = uuid::Uuid;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user