solverforge-macros 0.12.1

Derive macros for SolverForge constraint solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[path = "scalar_multi_module/domain/mod.rs"]
mod domain;

use domain::*;

fn main() {
    let _ = Plan {
        workers: Vec::new(),
        tasks: Vec::new(),
        score: None,
    };
    let descriptor = Plan::descriptor();
    let task_descriptor = &descriptor.entity_descriptors[0];
    let _scalar_variable_count = task_descriptor.genuine_variable_descriptors().count();
}