Skip to content

Commit 513652b

Browse files
committed
[monarch/ext] fold monarch_meta_extension into actor_extension
Pull Request resolved: #463 Right now we have 3 extensions: - actor_extension - monarch_extension (will be turned into tensor_engine_extension) - monarch_meta_extension (internal-only). This diff folds `monarch_meta_extension` into `actor_extension` to reduce the number of independent shared objects, using condition compilation to make the OSS build work. ghstack-source-id: 294947045 @exported-using-ghexport Differential Revision: [D77941251](https://our.internmc.facebook.com/intern/diff/D77941251/)
1 parent 704dd94 commit 513652b

File tree

2 files changed

+6
-24
lines changed

2 files changed

+6
-24
lines changed

actor_extension/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ mod blocking;
1616
mod code_sync;
1717
mod panic;
1818

19+
#[cfg(fbcode_build)]
20+
mod meta;
21+
1922
fn get_or_add_new_module<'py>(
2023
module: &Bound<'py, PyModule>,
2124
module_name: &str,
@@ -113,5 +116,8 @@ pub fn mod_init(module: &Bound<'_, PyModule>) -> PyResult<()> {
113116
crate::panic::register_python_bindings(&get_or_add_new_module(module, "panic")?)?;
114117

115118
crate::blocking::register_python_bindings(&get_or_add_new_module(module, "blocking")?)?;
119+
120+
#[cfg(fbcode_build)]
121+
crate::meta::register_python_bindings(&get_or_add_new_module(module, "meta")?)?;
116122
Ok(())
117123
}

monarch_meta_extension/Cargo.toml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)