Fixes from the first round of outside issues and pull requests, and the project's community files.
- Fix (#31):
bridgetakes a single source
file inside a unit (rust-anything bridge . pkg/core.py) and ports just that file, so a helper
script next to the real module can stay in the source language. - Fix (#32): a name defined twice in one
unit (a wrapper in__init__.pyand the function it wraps in a submodule, say) made one
definition silently replace the other.bridgenow refuses with both locations and how to
bridge the module you want on its own. - Fix (#33): Python command-line entry
points are kept in Python instead of offered as ports: functions the
if __name__ == "__main__":block (or a package's__main__.py) calls, and functions returning
anargparse.ArgumentParser.app front-doortakes the command line over in a whole-app port. - Fix (#34): a Python parameter typed with a
dataclass now gets real instances in recorded cases, built from the dataclass's fields (defaulted
fields sometimes left out), instead of onlyNoneand shapes that can never fit. - From @elfenomenokim: optional dataclass parameters bind as
Optionso the generated crate
compiles (#28), and Python's whole standard library resolves as stdlib, with unknown dependencies
named by the language's registry instead of "npm" (#29). - Community files: CONTRIBUTING, SECURITY (with private vulnerability reporting), CODE_OF_CONDUCT
and ACCESSIBILITY, issue and pull request templates. The README names its author up top, opens
with the speed demo, and lists its sponsors.