-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor context.rs #20
Copy link
Copy link
Open
Labels
refactoringRelated to code restructuring without behavior changeRelated to code restructuring without behavior change
Milestone
Metadata
Metadata
Assignees
Labels
refactoringRelated to code restructuring without behavior changeRelated to code restructuring without behavior change
Summary
Split
src/context.rsinto focused modules (or submodules) so the crate entry point stays maintainable as the API grows.Background
context.rscurrently holdsParams,ContextOptions,Context, scratch sizing (compute_arena_bytes), and related helpers in one file. That was fine at small scope, but milestone 2 adds more bin_fhe surface; a single large file makes reviews harder and increases merge conflict risk.Work
params.rs,options.rs,context.rsre-exports only; orcontext::params/context::optionssubmodules).lib.rsas declarations + re-exports only perconventions.mdc.Context,Params,ContextOptionspaths from the crate root).