Skip to content

Commit

Permalink
post rebase attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
John-LittleBearLabs committed Nov 16, 2022
1 parent 4c706d2 commit f5881c8
Show file tree
Hide file tree
Showing 10 changed files with 562 additions and 151 deletions.
30 changes: 17 additions & 13 deletions composer/demo/rust.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@ Implementation = "rust"
CargoFeatures = 'libp2pv0470'
SupportedTransports = ["tcp"]

[[groups]]
Id = "rust-v0.46.0"
Implementation = "rust"
CargoFeatures = 'libp2pv0460'

[[groups]]
Id = "rust-v0.45.1"
Implementation = "rust"
CargoFeatures = 'libp2pv0450'
# [[groups]]
# Id = "rust-v0.46.0"
# Version = '0.46.0'
# Implementation = "rust"
# CargoFeatures = 'libp2pv0460'
# SupportedTransports = ["tcp"]

[[groups]]
Id = "rust-v0.44.0"
Implementation = "rust"
CargoFeatures = 'libp2pv0440'
# [[groups]]
# Id = "rust-v0.45.1"
# Implementation = "rust"
# CargoFeatures = 'libp2pv0450'
# SupportedTransports = ["tcp"]
#
# [[groups]]
# Id = "rust-v0.44.0"
# Implementation = "rust"
# CargoFeatures = 'libp2pv0440'
# SupportedTransports = ["tcp"]
6 changes: 3 additions & 3 deletions ping/_compositions/go-rust-interop-latest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

[groups.build_config]
path = "./rust/"

[groups.build_config.build_args]
CARGO_FEATURES = '{{ .CargoFeatures }}'
{{ end }}
Expand All @@ -93,9 +93,9 @@
CARGO_FEATURES = '{{ .CargoFeatures }}'
CARGO_REMOVE = '{{ .CargoFeatures }}'
CARGO_PATCH = """
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp-async-io", "ping", "noise", "dns-async-std", "rsa" ], optional = true}
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp", "ping", "noise", "dns", "async-std", "rsa" ], optional = true}
"""
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
4 changes: 2 additions & 2 deletions ping/_compositions/go-rust-interop.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@
CARGO_FEATURES = '{{ .CargoFeatures }}'
CARGO_REMOVE = '{{ .CargoFeatures }}'
CARGO_PATCH = """
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp-async-io", "ping", "noise", "dns-async-std", "rsa" ], optional = true}
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp", "ping", "noise", "dns", "async-std", "rsa" ], optional = true}
"""
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
2 changes: 1 addition & 1 deletion ping/_compositions/rust-cross-versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
CARGO_FEATURES = '{{ .CargoFeatures }}'
CARGO_REMOVE = '{{ .CargoFeatures }}'
CARGO_PATCH = """
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp-async-io", "ping", "noise", "dns-async-std", "rsa" ], optional = true}
{{ .CargoFeatures }} = {package = "libp2p", git = "https://{{ or $.Env.GitTarget "github.com/libp2p/rust-libp2p" }}", rev = "{{ $.Env.GitReference }}", default_features = false, features = [ "websocket", "mplex", "yamux", "tcp", "ping", "noise", "dns", "async-std", "rsa" ], optional = true}
"""
{{ end }}
{{ end }}
Expand Down
4 changes: 4 additions & 0 deletions ping/_compositions/rust.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ CargoFeatures = 'libp2pmaster'
[custom]
CargoFeatures = 'libp2pmaster'

[[groups]]
Id = '0.49.0'
CargoFeatures = 'libp2pv0490'

[[groups]]
Id = '0.48.0'
CargoFeatures = 'libp2pv0480'
Expand Down
2 changes: 1 addition & 1 deletion ping/manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enabled = true

[[testcases]]
name = "ping"
instances = { min = 2, max = 10000, default = 5 }
instances = { min = 1, max = 10000, default = 5 }

[testcases.params]
secure_channel = { type = "enum", desc = "secure channel used", values = ["noise"], default = "noise" }
Expand Down

0 comments on commit f5881c8

Please sign in to comment.