Implement async RNG, including rand_core sync traits.

This commit is contained in:
Bob McWhirter
2021-05-06 14:33:29 -04:00
parent 1eb70a7e5d
commit e8537ca9c2
10 changed files with 3449 additions and 3332 deletions

View File

@ -201,6 +201,9 @@ for chip in chips.values():
# ========= Update Cargo features
feature_optional_deps = {}
feature_optional_deps['_rng'] = ['rand_core']
features = {}
extra_features = set()
for name, chip in chips.items():
@ -208,7 +211,10 @@ for name, chip in chips.items():
for feature in chip['features']:
extra_features.add(feature)
for feature in sorted(list(extra_features)):
features[feature] = []
if feature in feature_optional_deps:
features[feature] = feature_optional_deps[feature]
else:
features[feature] = []
SEPARATOR_START = '# BEGIN GENERATED FEATURES\n'
SEPARATOR_END = '# END GENERATED FEATURES\n'