Skip to content

Commit

Permalink
fix derive macro broken during refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
analogrelay committed Sep 12, 2024
1 parent c8ca230 commit c8b0dc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sdk/typespec/typespec_client_core/src/http/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ pub use pipeline::*;
pub use request::{Body, Request, RequestContent};
pub use response::{Model, Response};

// Re-export derive macro for Model.
#[cfg(feature = "derive")]
pub use typespec_derive::Model;

// Re-export important types.
pub use http_types::{Method, StatusCode};
pub use url::Url;
Expand Down
3 changes: 3 additions & 0 deletions sdk/typespec/typespec_client_core/src/http/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ use std::future::Future;
use std::{fmt, marker::PhantomData, pin::Pin};
use typespec::error::{ErrorKind, ResultExt};

#[cfg(feature = "derive")]
pub use typespec_derive::Model;

#[cfg(not(target_arch = "wasm32"))]
pub type PinnedStream = Pin<Box<dyn Stream<Item = crate::Result<Bytes>> + Send + Sync>>;
#[cfg(target_arch = "wasm32")]
Expand Down

0 comments on commit c8b0dc7

Please sign in to comment.