urlyy opened a new pull request, #2916:
URL: https://github.com/apache/fory/pull/2916
## What does this PR do?
Added a `Config` struct and a global variable `DEFAULT_CONFIG` to manage the
default configuration values for Fory.
## Related issues
#2915
## Does this PR introduce any user-facing change?
Like this, users can get/set default config.
```rust
use fory_core::{
fory::{get_default_config, set_default_config, Config},
Fory,
};
#[test]
fn test_config() {
let default_cfg = get_default_config();
let compatible = true;
let new_cfg = Config {
compatible,
..default_cfg
};
set_default_config(new_cfg);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]