Skip to content

Commit

Permalink
Fix cherry-pick issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Sep 24, 2024
1 parent 29cc7b6 commit eb2efe1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 77 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions packages/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,4 @@ proc-macro = true
default = []

[dependencies]
<<<<<<< HEAD
syn = { version = "1.0", features = ["full"] }

[dev-dependencies]
# Needed for testing docs
# "What's even more fun, Cargo packages actually can have cyclic dependencies.
# "(a package can have an indirect dev-dependency on itself)"
# https://users.rust-lang.org/t/does-cargo-support-cyclic-dependencies/35666/3
cosmwasm-std = { path = "../std" }
=======
proc-macro2 = "1.0.79"
quote = "1.0.35"
syn = { version = "2", features = ["full"] }
>>>>>>> e230048f1 (Document entry_point in cosmwasm-std instead of derive)
50 changes: 0 additions & 50 deletions packages/derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,57 +4,7 @@ extern crate syn;
use proc_macro::TokenStream;
use std::str::FromStr;

<<<<<<< HEAD
/// This attribute macro generates the boilerplate required to call into the
/// contract-specific logic from the entry-points to the Wasm module.
///
/// It should be added to the contract's init, handle, migrate and query implementations
/// like this:
/// ```
/// # use cosmwasm_std::{
/// # Storage, Api, Querier, DepsMut, Deps, entry_point, Env, StdError, MessageInfo,
/// # Response, QueryResponse,
/// # };
/// #
/// # type InstantiateMsg = ();
/// # type ExecuteMsg = ();
/// # type QueryMsg = ();
///
/// #[entry_point]
/// pub fn instantiate(
/// deps: DepsMut,
/// env: Env,
/// info: MessageInfo,
/// msg: InstantiateMsg,
/// ) -> Result<Response, StdError> {
/// # Ok(Default::default())
/// }
///
/// #[entry_point]
/// pub fn execute(
/// deps: DepsMut,
/// env: Env,
/// info: MessageInfo,
/// msg: ExecuteMsg,
/// ) -> Result<Response, StdError> {
/// # Ok(Default::default())
/// }
///
/// #[entry_point]
/// pub fn query(
/// deps: Deps,
/// env: Env,
/// msg: QueryMsg,
/// ) -> Result<QueryResponse, StdError> {
/// # Ok(Default::default())
/// }
/// ```
///
/// where `InstantiateMsg`, `ExecuteMsg`, and `QueryMsg` are contract defined
/// types that implement `DeserializeOwned + JsonSchema`.
=======
// function documented in cosmwasm-std
>>>>>>> e230048f1 (Document entry_point in cosmwasm-std instead of derive)
#[proc_macro_attribute]
pub fn entry_point(_attr: TokenStream, mut item: TokenStream) -> TokenStream {
let cloned = item.clone();
Expand Down
7 changes: 0 additions & 7 deletions packages/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@ pub use crate::imports::{ExternalApi, ExternalQuerier, ExternalStorage};
#[cfg(not(target_arch = "wasm32"))]
pub mod testing;

<<<<<<< HEAD
// Re-exports

=======
pub use cosmwasm_core::{BLS12_381_G1_GENERATOR, BLS12_381_G2_GENERATOR};

/// This attribute macro generates the boilerplate required to call into the
/// contract-specific logic from the entry-points to the Wasm module.
///
Expand Down Expand Up @@ -222,5 +216,4 @@ pub use cosmwasm_core::{BLS12_381_G1_GENERATOR, BLS12_381_G2_GENERATOR};
/// todo!();
/// }
/// ```
>>>>>>> e230048f1 (Document entry_point in cosmwasm-std instead of derive)
pub use cosmwasm_derive::entry_point;

0 comments on commit eb2efe1

Please sign in to comment.