Skip to content

Commit 00d8414

Browse files
authored
chore: update cmakelists version, add GetEvalValue test and delete ABACData (#172)
Signed-off-by: stonexx <[email protected]>
1 parent f9d1a33 commit 00d8414

File tree

16 files changed

+21
-534
lines changed

16 files changed

+21
-534
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif()
3333

3434
project(
3535
casbin
36-
VERSION 1.38.0
36+
VERSION 1.43.0
3737
DESCRIPTION "An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++"
3838
HOMEPAGE_URL https://github.com/casbin/casbin-cpp
3939
LANGUAGES CXX C

bindings/python/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ set(SOURCES
1818
main.cpp
1919
py_cached_enforcer.cpp
2020
py_enforcer.cpp
21-
py_abac_data.cpp
2221
py_model.cpp
2322
py_config.cpp
2423
py_synced_enforcer.cpp

bindings/python/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ PYBIND11_MODULE(pycasbin, m) {
3636

3737
bindPyEnforcer(m);
3838
bindPyCachedEnforcer(m);
39-
bindABACData(m);
4039
bindPyModel(m);
4140
bindPyConfig(m);
4241
bindPySyncedEnforcer(m);

bindings/python/py_abac_data.cpp

Lines changed: 0 additions & 83 deletions
This file was deleted.

bindings/python/py_casbin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ namespace py = pybind11;
2020

2121
void bindPyEnforcer(py::module &m);
2222
void bindPyCachedEnforcer(py::module &m);
23-
void bindABACData(py::module &m);
2423
void bindPyModel(py::module &m);
2524
void bindPyConfig(py::module &m);
2625
void bindPySyncedEnforcer(py::module& m);

casbin/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# limitations under the License.
1414

1515
set(CASBIN_SOURCE_FILES
16-
abac_data.cpp
1716
enforcer.cpp
1817
enforcer_cached.cpp
1918
enforcer_synced.cpp

casbin/abac_data.cpp

Lines changed: 0 additions & 69 deletions
This file was deleted.

casbin/abac_data.h

Lines changed: 0 additions & 112 deletions
This file was deleted.

casbin/attribute_types.h

Lines changed: 0 additions & 31 deletions
This file was deleted.

casbin/data_types.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@
1919
#include <initializer_list>
2020
#include <unordered_map>
2121
#include <nlohmann/json.hpp>
22-
#include "abac_data.h"
2322

2423
namespace casbin {
2524

26-
typedef std::variant<std::string, std::shared_ptr<ABACData>, std::shared_ptr<nlohmann::json>> Data;
25+
typedef std::variant<std::string, std::shared_ptr<nlohmann::json>> Data;
2726
typedef std::vector<Data> DataVector;
2827
typedef std::initializer_list<Data> DataList;
2928
typedef std::unordered_map<std::string, Data> DataMap;

0 commit comments

Comments
 (0)