URI: 
       tsdk: Unexport the drk_log_ symbol from the rust crate. - wasm-runtime - A wasm runtime
  HTML git clone https://git.parazyd.org/wasm-runtime
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit f685dafefe02abe700e5b56013d79e2b74e7b6c0
   DIR parent 5faff7d783dfea4f830725938fd96a6bd3829d71
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Fri, 11 Mar 2022 19:07:57 +0100
       
       sdk: Unexport the drk_log_ symbol from the rust crate.
       
       Diffstat:
         M Makefile                            |       6 +++++-
         M drk-sdk/src/log.rs                  |       3 ++-
       
       2 files changed, 7 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/Makefile b/Makefile
       t@@ -5,8 +5,12 @@ SRC = \
                $(shell find smart-contract -type f) \
                $(shell find drk-sdk -type f)
        
       +# Cargo binary
        CARGO = cargo
        
       +# wasm-strip binary (build with "make wabt" and change path)
       +WASM_STRIP = wasm-strip
       +
        DEPS = smart_contract.wasm
        
        all: $(DEPS)
       t@@ -19,6 +23,6 @@ wabt:
        smart_contract.wasm: $(SRC)
                cd smart-contract && $(CARGO) build --release --lib --target wasm32-unknown-unknown
                cp -f smart-contract/target/wasm32-unknown-unknown/release/$@ $@
       -        -wabt/bin/wasm-strip $@
       +        -wasm-strip $@
        
        .PHONY: all
   DIR diff --git a/drk-sdk/src/log.rs b/drk-sdk/src/log.rs
       t@@ -1,3 +1,4 @@
       +/// Print a message to the log
        #[macro_export]
        macro_rules! msg {
            ($msg:expr) => {
       t@@ -19,5 +20,5 @@ pub fn drk_log(message: &str) {
        
        #[cfg(target_arch = "wasm32")]
        extern "C" {
       -    pub fn drk_log_(ptr: *const u8, len: usize);
       +    fn drk_log_(ptr: *const u8, len: usize);
        }