Skip to content

Commit

Permalink
chore: update cmakelists version, add GetEvalValue test and delete AB…
Browse files Browse the repository at this point in the history
…ACData (#172)

Signed-off-by: stonexx <[email protected]>
  • Loading branch information
sheny1xuan authored Nov 27, 2021
1 parent f9d1a33 commit 00d8414
Show file tree
Hide file tree
Showing 16 changed files with 21 additions and 534 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ endif()

project(
casbin
VERSION 1.38.0
VERSION 1.43.0
DESCRIPTION "An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++"
HOMEPAGE_URL https://github.com/casbin/casbin-cpp
LANGUAGES CXX C
Expand Down
1 change: 0 additions & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ set(SOURCES
main.cpp
py_cached_enforcer.cpp
py_enforcer.cpp
py_abac_data.cpp
py_model.cpp
py_config.cpp
py_synced_enforcer.cpp
Expand Down
1 change: 0 additions & 1 deletion bindings/python/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ PYBIND11_MODULE(pycasbin, m) {

bindPyEnforcer(m);
bindPyCachedEnforcer(m);
bindABACData(m);
bindPyModel(m);
bindPyConfig(m);
bindPySyncedEnforcer(m);
Expand Down
83 changes: 0 additions & 83 deletions bindings/python/py_abac_data.cpp

This file was deleted.

1 change: 0 additions & 1 deletion bindings/python/py_casbin.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ namespace py = pybind11;

void bindPyEnforcer(py::module &m);
void bindPyCachedEnforcer(py::module &m);
void bindABACData(py::module &m);
void bindPyModel(py::module &m);
void bindPyConfig(py::module &m);
void bindPySyncedEnforcer(py::module& m);
Expand Down
1 change: 0 additions & 1 deletion casbin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

set(CASBIN_SOURCE_FILES
abac_data.cpp
enforcer.cpp
enforcer_cached.cpp
enforcer_synced.cpp
Expand Down
69 changes: 0 additions & 69 deletions casbin/abac_data.cpp

This file was deleted.

112 changes: 0 additions & 112 deletions casbin/abac_data.h

This file was deleted.

31 changes: 0 additions & 31 deletions casbin/attribute_types.h

This file was deleted.

3 changes: 1 addition & 2 deletions casbin/data_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
#include <initializer_list>
#include <unordered_map>
#include <nlohmann/json.hpp>
#include "abac_data.h"

namespace casbin {

typedef std::variant<std::string, std::shared_ptr<ABACData>, std::shared_ptr<nlohmann::json>> Data;
typedef std::variant<std::string, std::shared_ptr<nlohmann::json>> Data;
typedef std::vector<Data> DataVector;
typedef std::initializer_list<Data> DataList;
typedef std::unordered_map<std::string, Data> DataMap;
Expand Down
Loading

0 comments on commit 00d8414

Please sign in to comment.