Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit 6fa802a

Browse files
committed
[README] Update for 0.8.1 release.
1 parent e541020 commit 6fa802a

File tree

5 files changed

+22
-39
lines changed

5 files changed

+22
-39
lines changed

.CurrentChangelog.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
### 0.8.0 (2021-05-24)
1+
### 0.8.1 (2021-06-22)
22

33
This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).
4-
Please refer to the [WasmEdge 0.8.0](https://github.com/WasmEdge/WasmEdge/releases/tag/0.8.0) for more details.
4+
Please refer to the [WasmEdge 0.8.1](https://github.com/WasmEdge/WasmEdge/releases/tag/0.8.1) for more details.
55

66
Features:
77

8-
* Renamed this project to `WasmEdge-storage` and updated the `WasmEdge` dependency.
9-
* Added `wasmedge-storage` C API shared library.
10-
* Added CMake option `BUILD_SHARED_LIB` to enable compiling the shared library (`ON` by default).
11-
* Added build and release CI.
8+
* Update the `WasmEdge` dependency to `0.8.1`.

CMakeLists.txt

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
cmake_minimum_required(VERSION 3.11)
44
project(WasmEdge-Storage)
55

6-
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
76
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
87
if(NOT CMAKE_BUILD_TYPE)
98
set(CMAKE_BUILD_TYPE RelWithDebInfo)
@@ -16,8 +15,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
1615
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold")
1716
set(CMAKE_CXX_STANDARD 17)
1817
set(CMAKE_CXX_EXTENSIONS OFF)
18+
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
1919
set(CMAKE_ENABLE_EXPORTS ON)
2020
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
21+
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
22+
set(CMAKE_SKIP_RPATH ON)
2123

2224
# List of WasmEdge options
2325
option(BUILD_TOOLS "Generate wasmedge and wasmedgec tools." OFF)
@@ -31,7 +33,7 @@ if(NOT WASMEDGE_CORE_PATH)
3133
FetchContent_Declare(
3234
wasmedge
3335
GIT_REPOSITORY https://github.com/WasmEdge/WasmEdge.git
34-
GIT_TAG 0.8.0
36+
GIT_TAG 0.8.1
3537
)
3638

3739
FetchContent_GetProperties(wasmedge)
@@ -84,10 +86,6 @@ endif()
8486

8587
# Cargo build command
8688
set(RUST_STORAGE_LIB "${CMAKE_CURRENT_BINARY_DIR}/target/${RUSTC_TARGET}/release/${CMAKE_STATIC_LIBRARY_PREFIX}wasmedge_storage_rust.a")
87-
# NOT to enable LTO before the building environment has LLVM 12.
88-
#if(CMAKE_BUILD_TYPE STREQUAL Release OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
89-
# set(RUST_STORAGE_FLAG "RUSTFLAGS=\"-Clinker-plugin-lto\"")
90-
#endif()
9189
add_custom_command(
9290
OUTPUT ${RUST_STORAGE_LIB}
9391
COMMAND ${CMAKE_COMMAND} -E env CARGO_TARGET_DIR=${CMAKE_CURRENT_BINARY_DIR}/target ${RUST_STORAGE_FLAG} cargo build --release --target ${RUSTC_TARGET}

Changelog.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
### 0.8.1 (2021-06-22)
2+
3+
This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).
4+
Please refer to the [WasmEdge 0.8.1](https://github.com/WasmEdge/WasmEdge/releases/tag/0.8.1) for more details.
5+
6+
Features:
7+
8+
* Update the `WasmEdge` dependency to `0.8.1`.
9+
110
### 0.8.0 (2021-05-24)
211

312
This is the host function extension for [WasmEdge](https://github.com/WasmEdge/WasmEdge).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ $ sudo apt install -y clang
3636
```bash
3737
$ git clone --recursive [email protected]:second-state/WasmEdge-storage.git
3838
$ cd WasmEdge-storage
39-
$ git checkout 0.8.0
39+
$ git checkout 0.8.1
4040
```
4141

4242
## Prepare Machine with RocksDB

lib/CMakeLists.txt

+5-26
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,36 @@ add_library(wasmedgeHostModuleWasmEdgeStorage
88
add_dependencies(wasmedgeHostModuleWasmEdgeStorage wasmedgeStorageRust)
99

1010
target_link_libraries(wasmedgeHostModuleWasmEdgeStorage
11-
PRIVATE
12-
wasmedgeStorageRust
11+
PUBLIC
1312
wasmedgeCommon
1413
wasmedgeSystem
14+
wasmedgeStorageRust
1515
)
1616

1717
target_include_directories(wasmedgeHostModuleWasmEdgeStorage
1818
PUBLIC
19-
${Boost_INCLUDE_DIR}
2019
${WASMEDGE_CORE_PATH}/include
21-
${WASMEDGE_CORE_PATH}/thirdparty
2220
)
2321

2422
if (BUILD_SHARED_LIB)
2523
add_library(wasmedge-storage_c SHARED
26-
# Rebuild these files without linking the built targets because the static libraries enabled LTO.
27-
${WASMEDGE_CORE_PATH}/lib/common/hexstr.cpp
28-
${WASMEDGE_CORE_PATH}/lib/common/log.cpp
29-
${WASMEDGE_CORE_PATH}/lib/common/configure.cpp
30-
${WASMEDGE_CORE_PATH}/thirdparty/easyloggingpp/easylogging++.cc
31-
${WASMEDGE_CORE_PATH}/lib/system/allocator.cpp
32-
# Add this in 0.8.1:
33-
#${WASMEDGE_CORE_PATH}/lib/system/mmap.cpp
3424
wasmedge-storage.cpp
3525
storage_module.cpp
3626
storage_func.cpp
3727
)
3828

3929
add_dependencies(wasmedge-storage_c wasmedgeStorageRust)
4030

41-
# Forced disable LTO to link the static library in rust (LLVM12) with self (LLVM10)
42-
set_property(TARGET wasmedge-storage_c PROPERTY INTERPROCEDURAL_OPTIMIZATION false)
43-
44-
# Used by easylogging++
45-
target_compile_definitions(wasmedge-storage_c
46-
PUBLIC
47-
-DELPP_NO_DEFAULT_LOG_FILE
48-
)
49-
5031
target_include_directories(wasmedge-storage_c
5132
PUBLIC
52-
${Boost_INCLUDE_DIR}
5333
${WASMEDGE_CORE_PATH}/include
54-
${WASMEDGE_CORE_PATH}/thirdparty
5534
${WASMEDGE_CORE_BIN_PATH}/include/api
56-
# Used by wasmedgeSystem
57-
${WASMEDGE_CORE_BIN_PATH}/lib/system
5835
)
5936

6037
target_link_libraries(wasmedge-storage_c
61-
PRIVATE
38+
PUBLIC
39+
wasmedgeCommon
40+
wasmedgeSystem
6241
wasmedgeStorageRust
6342
)
6443

0 commit comments

Comments
 (0)