Add support for ext_terminate (#352)

* [core, lang] add support for ext_terminate

* [lang] apply rustfmt
15 jobs for master in 8 minutes and 50 seconds (queued for 32 seconds)
Status Job ID Name Coverage
  Check
passed #420806
linux-docker
check-std

00:01:36

passed #420807
linux-docker
check-wasm

00:00:18

 
  Workspace
passed #420808
linux-docker
build-std

00:02:03

passed #420809
linux-docker
build-wasm

00:02:26

passed #420811
linux-docker
clippy-std

00:00:21

passed #420812
linux-docker
clippy-wasm

00:00:16

passed #420813
linux-docker
fmt

00:00:14

passed #420810
linux-docker
test

00:01:15

 
  Examples
passed #420816
linux-docker
examples-clippy-std

00:00:20

passed #420817
linux-docker
examples-clippy-wasm

00:01:13

passed #420818
linux-docker
examples-contract-build

00:00:30

passed #420815
linux-docker
examples-fmt

00:00:15

passed #420819
linux-docker
examples-generate-metadata

00:01:11

passed #420814
linux-docker
examples-test

00:01:26

 
  Publish
passed #420820
linux-docker
publish-docs

00:01:42