This pull request introduces a new StringAdapter to handle policy strings directly, along with necessary integrations and updates to the existing codebase. The most important changes include the addition of the StringAdapter struct and its implementation, updates to the adapter module to include the new adapter, and modifications to the main library file to use the new adapter.
Introduction of StringAdapter:
src/adapter/file_adapter.rs: Added the StringAdapter struct with methods to load, save, and clear policies from a string, and implemented the Adapter trait for it.
Module updates:
src/adapter/mod.rs: Updated to include StringAdapter in the list of exported adapters.
Library updates:
src/lib.rs: Modified to conditionally export StringAdapter along with other adapters.
This pull request introduces a new
StringAdapter
to handle policy strings directly, along with necessary integrations and updates to the existing codebase. The most important changes include the addition of theStringAdapter
struct and its implementation, updates to theadapter
module to include the new adapter, and modifications to the main library file to use the new adapter.Introduction of
StringAdapter
:src/adapter/file_adapter.rs
: Added theStringAdapter
struct with methods to load, save, and clear policies from a string, and implemented theAdapter
trait for it.Module updates:
src/adapter/mod.rs
: Updated to includeStringAdapter
in the list of exported adapters.Library updates:
src/lib.rs
: Modified to conditionally exportStringAdapter
along with other adapters.