wirevalue/
config.rs

1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9//! Configuration keys for wirevalue.
10
11use hyperactor_config::CONFIG;
12use hyperactor_config::ConfigAttr;
13use hyperactor_config::attrs::declare_attrs;
14
15use crate::Encoding;
16
17declare_attrs! {
18    /// The default encoding to be used.
19    @meta(CONFIG = ConfigAttr {
20        env_name: Some("HYPERACTOR_DEFAULT_ENCODING".to_string()),
21        py_name: Some("default_encoding".to_string()),
22    })
23    pub attr DEFAULT_ENCODING: Encoding = Encoding::Multipart;
24}