Skip to content

chore: update cmakelists version, add GetEvalValue test and delete ABACData. #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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