(self)
| 58 | self.features = features |
| 59 | |
| 60 | def build(self): |
| 61 | command = ['cargo', 'build', '-p', self.target] |
| 62 | if len(self.features) != 0: |
| 63 | command.append('--features') |
| 64 | command.append(' '.join(self.features)) |
| 65 | if not debug: |
| 66 | command.append('--release') |
| 67 | sp.check_call(command) |
| 68 | |
| 69 | def install(self, prefix): |
| 70 | copy_file('{}/{}'.format(prefix, self.src), 'megflow/{}'.format(self.dst)) |