rust: ExpansionConfig changes